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" + ) } }) }