Skip to content

Commit 9afc2e7

Browse files
authored
docs: switch from pnpm dlx to pnpm create (#5322)
1 parent d3aa321 commit 9afc2e7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ yarn create vite
5656
With PNPM:
5757

5858
```bash
59-
$ pnpm dlx create-vite
59+
$ pnpm create vite
6060
```
6161

6262
Then follow the prompts!
@@ -74,7 +74,7 @@ npm init vite@latest my-vue-app -- --template vue
7474
yarn create vite my-vue-app --template vue
7575

7676
# pnpm
77-
pnpm dlx create-vite my-vue-app --template vue
77+
pnpm create vite my-vue-app -- --template vue
7878
```
7979

8080
See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) for more details on each supported template: `vanilla`, `vanilla-ts`, `vue`, `vue-ts`, `react`, `react-ts`, `preact`, `preact-ts`, `lit`, `lit-ts`, `svelte`, `svelte-ts`.

packages/create-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { yellow, green } = require('kolorist')
55

66
const alternativeCommands = {
77
yarn: 'yarn create vite',
8-
pnpm: 'pnpm dlx create-vite',
8+
pnpm: 'pnpm create vite',
99
npm: 'npm init vite',
1010
unknown: 'npm init vite'
1111
}

packages/create-vite/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ yarn create vite
2020
With PNPM:
2121

2222
```bash
23-
$ pnpm dlx create-vite
23+
$ pnpm create vite
2424
```
2525

2626
Then follow the prompts!
@@ -38,7 +38,7 @@ npm init vite@latest my-vue-app -- --template vue
3838
yarn create vite my-vue-app --template vue
3939

4040
# pnpm
41-
pnpm dlx create-vite my-vue-app --template vue
41+
pnpm create vite my-vue-app -- --template vue
4242
```
4343

4444
Currently supported template presets include:

0 commit comments

Comments
 (0)