From b8f348d1b422b9f4b750cdee4c1ff68575092b4a Mon Sep 17 00:00:00 2001 From: TropicalRaisel <87331818+TropicalRaisel@users.noreply.github.com> Date: Fri, 10 Sep 2021 14:57:34 -0700 Subject: [PATCH 1/2] Fixed pnpm create-vite command documentation pnpx is deprecated: https://pnpm.io/pnpx-cli --- docs/guide/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/index.md b/docs/guide/index.md index 01b8582323f1cb..0ed159474b04bd 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -37,7 +37,7 @@ $ yarn create vite With PNPM: ```bash -$ pnpx create-vite +$ pnpm dlx create-vite ``` Then follow the prompts! From 07b112f6acda42559100ac798993e1748081fafa Mon Sep 17 00:00:00 2001 From: TropicalRaisel Date: Sat, 11 Sep 2021 18:03:40 -0700 Subject: [PATCH 2/2] Replaced other pnpx entries --- packages/create-app/index.js | 2 +- packages/create-vite/CHANGELOG.md | 2 +- packages/create-vite/README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-app/index.js b/packages/create-app/index.js index a1fd6db2d89c69..8fea255ac352a4 100755 --- a/packages/create-app/index.js +++ b/packages/create-app/index.js @@ -5,7 +5,7 @@ const { yellow, green } = require('kolorist') const alternativeCommands = { yarn: 'yarn create vite', - pnpm: 'pnpx create-vite', + pnpm: 'pnpm dlx create-vite', npm: 'npm init vite', unknown: 'npm init vite' } diff --git a/packages/create-vite/CHANGELOG.md b/packages/create-vite/CHANGELOG.md index 49f4e85621c6b8..80735f269080ba 100644 --- a/packages/create-vite/CHANGELOG.md +++ b/packages/create-vite/CHANGELOG.md @@ -76,7 +76,7 @@ $ yarn create vite With PNPM: ```bash -$ pnpx create-vite +$ pnpm dlx create-vite ``` diff --git a/packages/create-vite/README.md b/packages/create-vite/README.md index 6d6673c45fb856..b659486141f2d2 100644 --- a/packages/create-vite/README.md +++ b/packages/create-vite/README.md @@ -20,7 +20,7 @@ $ yarn create vite With PNPM: ```bash -$ pnpx create-vite +$ pnpm dlx create-vite ``` Then follow the prompts! @@ -38,7 +38,7 @@ npm init vite@latest my-vue-app -- --template vue yarn create vite my-vue-app --template vue # pnpm -pnpx create-vite my-vue-app --template vue +pnpm dlx create-vite my-vue-app --template vue ``` Currently supported template presets include: