From 5877dcd21ac782ac900c4385d0f2f9ca6179dd55 Mon Sep 17 00:00:00 2001 From: /raj Date: Sat, 21 Oct 2023 18:17:21 +0530 Subject: [PATCH] docs(www): bunx scripts run using bun instead of node (#1590) * fix: using bun to initialize project works now * style(www): format write --------- Co-authored-by: shadcn --- 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 7b11718be8c..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") + 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") + node.properties["__bunCommand__"] = npmCommand.replace( + "npx", + "bunx --bun" + ) } }) }