Skip to content

Commit

Permalink
docs(www): bunx scripts run using bun instead of node (#1590)
Browse files Browse the repository at this point in the history
* fix: using bun to initialize project works now

* style(www): format write

---------

Co-authored-by: shadcn <[email protected]>
  • Loading branch information
xrehpicx and shadcn authored Oct 21, 2023
1 parent 95be483 commit 5877dcd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/www/lib/rehype-npm-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"
)
}
})
}
Expand Down

1 comment on commit 5877dcd

@vercel
Copy link

@vercel vercel bot commented on 5877dcd Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./apps/www

ui-git-main-shadcn-pro.vercel.app
ui.shadcn.com
example-playground.vercel.app
ui-shadcn-pro.vercel.app

Please sign in to comment.