Skip to content

Commit 97ef2af

Browse files
authored
Merge pull request #160 from ncdai/improve
fix: update yarn command replacement for npx in rehypeNpmCommand func…
2 parents a3e4c55 + f618e19 commit 97ef2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/lib/rehype-npm-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function rehypeNpmCommand() {
7474
"npx",
7575
"pnpm dlx",
7676
);
77-
node.properties["__yarnCommand__"] = npmCommand;
77+
node.properties["__yarnCommand__"] = npmCommand.replace("npx", "yarn");
7878
node.properties["__npmCommand__"] = npmCommand;
7979
node.properties["__bunCommand__"] = npmCommand.replace(
8080
"npx",

0 commit comments

Comments
 (0)