File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export function CliCommand({
4040 const isNpx = npmCommand . includes ( "npx" ) ;
4141 if ( isNpx ) {
4242 pnpmCommand = pnpmCommand ?? npmCommand . replace ( "npx" , "pnpm dlx" ) ;
43- yarnCommand = yarnCommand ?? npmCommand . replace ( "npx" , "yarn" ) ;
43+ yarnCommand = yarnCommand ?? npmCommand . replace ( "npx" , "yarn dlx " ) ;
4444 bunCommand = bunCommand ?? npmCommand . replace ( "npx" , "bunx" ) ;
4545 } else {
4646 pnpmCommand = pnpmCommand ?? npmCommand . replace ( "npm" , "pnpm" ) ;
47- yarnCommand = yarnCommand ?? npmCommand . replace ( "npm" , "yarn" ) ;
47+ yarnCommand = yarnCommand ?? npmCommand . replace ( "npm install " , "yarn add " ) ;
4848 bunCommand = bunCommand ?? npmCommand . replace ( "npm" , "bun" ) ;
4949 }
5050
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import rehypeSlug from "rehype-slug";
1111import { u } from "unist-builder" ;
1212import { UnistNode } from "./types/unist" ;
1313import { componentConfig } from "./config" ;
14- import { rehypeNpmCommand } from "./lib/rehype-npm-command" ;
1514
1615const Links = defineNestedType ( ( ) => {
1716 return {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments