Skip to content

Commit 2970e64

Browse files
committed
docs: improved yarn command
1 parent 75c675e commit 2970e64

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

components/ComponentInstall.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

contentlayer.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import rehypeSlug from "rehype-slug";
1111
import { u } from "unist-builder";
1212
import { UnistNode } from "./types/unist";
1313
import { componentConfig } from "./config";
14-
import { rehypeNpmCommand } from "./lib/rehype-npm-command";
1514

1615
const Links = defineNestedType(() => {
1716
return {

lib/rehype-npm-command.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)