Skip to content

Commit

Permalink
fix(www): rehype yarn dlx command
Browse files Browse the repository at this point in the history
  • Loading branch information
palmflip committed Sep 6, 2024
1 parent 078dfe6 commit 840a15f
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 @@ -51,7 +51,10 @@ export function rehypeNpmCommand() {
) {
const npmCommand = node.properties?.["__rawString__"]
node.properties["__npmCommand__"] = npmCommand
node.properties["__yarnCommand__"] = npmCommand
node.properties["__yarnCommand__"] = npmCommand.replace(
"npx",
"yarn dlx"
)
node.properties["__pnpmCommand__"] = npmCommand.replace(
"npx",
"pnpm dlx"
Expand Down

0 comments on commit 840a15f

Please sign in to comment.