From 82d3d04311dffcf6673efd195918fe3713134c93 Mon Sep 17 00:00:00 2001 From: /raj Date: Mon, 25 Sep 2023 15:20:25 +0530 Subject: [PATCH 1/2] fix: using bun to initialize project works now --- apps/www/lib/rehype-npm-command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/lib/rehype-npm-command.ts b/apps/www/lib/rehype-npm-command.ts index 7b11718be8c..2aff4b994c4 100644 --- a/apps/www/lib/rehype-npm-command.ts +++ b/apps/www/lib/rehype-npm-command.ts @@ -38,7 +38,7 @@ export function rehypeNpmCommand() { "npx create-", "pnpm create " ) - node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx") + node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx --bun") } // npx. @@ -53,7 +53,7 @@ export function rehypeNpmCommand() { "npx", "pnpm dlx" ) - node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx") + node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx --bun") } }) } From d9a0b43d5a4824e9c874df032a4fd5c5c36493bf Mon Sep 17 00:00:00 2001 From: shadcn Date: Sat, 21 Oct 2023 16:42:47 +0400 Subject: [PATCH 2/2] style(www): format write --- apps/www/lib/rehype-npm-command.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/www/lib/rehype-npm-command.ts b/apps/www/lib/rehype-npm-command.ts index 2aff4b994c4..68157b66e4c 100644 --- a/apps/www/lib/rehype-npm-command.ts +++ b/apps/www/lib/rehype-npm-command.ts @@ -38,7 +38,10 @@ export function rehypeNpmCommand() { "npx create-", "pnpm create " ) - node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx --bun") + node.properties["__bunCommand__"] = npmCommand.replace( + "npx", + "bunx --bun" + ) } // npx. @@ -53,7 +56,10 @@ export function rehypeNpmCommand() { "npx", "pnpm dlx" ) - node.properties["__bunCommand__"] = npmCommand.replace("npx", "bunx --bun") + node.properties["__bunCommand__"] = npmCommand.replace( + "npx", + "bunx --bun" + ) } }) }