Skip to content

Commit 124c9c5

Browse files
committed
docs: replace create-react-app with create-vite in dlx example
1 parent dc73e88 commit 124c9c5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.yarn/versions/28abe8f1.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-dlx": patch

packages/plugin-dlx/sources/commands/dlx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export default class DlxCommand extends BaseCommand {
2020
Using \`yarn dlx\` as a replacement of \`yarn add\` isn't recommended, as it makes your project non-deterministic (Yarn doesn't keep track of the packages installed through \`dlx\` - neither their name, nor their version).
2121
`,
2222
examples: [[
23-
`Use create-react-app to create a new React app`,
24-
`yarn dlx create-react-app ./my-app`,
23+
`Use create-vite to scaffold a new Vite project`,
24+
`yarn dlx create-vite`,
2525
], [
2626
`Install multiple packages for a single command`,
2727
`yarn dlx -p typescript -p ts-node ts-node --transpile-only -e "console.log('hello!')"`,

0 commit comments

Comments
 (0)