Skip to content

Commit

Permalink
chore(www): pnpx to pnpm dlx (#350)
Browse files Browse the repository at this point in the history
* fix(npm-commands): pnpx to pnpm dlx

* style(www): fix

---------

Co-authored-by: shadcn <[email protected]>
  • Loading branch information
dninomiya and shadcn authored Jun 26, 2023
1 parent 2846b2e commit 77d6f56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/www/lib/rehype-npm-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function rehypeNpmCommand() {
const npmCommand = node.properties?.["__rawString__"]
node.properties["__npmCommand__"] = npmCommand
node.properties["__yarnCommand__"] = npmCommand
node.properties["__pnpmCommand__"] = npmCommand.replace("npx", "pnpx")
node.properties["__pnpmCommand__"] = npmCommand.replace(
"npx",
"pnpm dlx"
)
}
})
}
Expand Down

1 comment on commit 77d6f56

@vercel
Copy link

@vercel vercel bot commented on 77d6f56 Jun 26, 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-shadcn-pro.vercel.app
ui-git-main-shadcn-pro.vercel.app
example-playground.vercel.app
ui.shadcn.com

Please sign in to comment.