]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: add a note that `pnpm init` cannot be distinguished at the moment
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 11 Aug 2021 15:08:54 +0000 (23:08 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 11 Aug 2021 15:08:54 +0000 (23:08 +0800)
index.js

index cab65f72919a3e76b623a89fa607ebbf1cfe0ce3..c99f016970b2d707ca5e3fd28c31eda51e20c620 100755 (executable)
--- a/index.js
+++ b/index.js
@@ -304,6 +304,8 @@ async function init() {
 
   // Instructions:
   // Supported package managers: pnpm > yarn > npm
+  // Note: until <https://github.com/pnpm/pnpm/issues/3505> is resolved,
+  // it is not possible to tell if the command is called by `pnpm init`.
   const packageManager = /pnpm/.test(process.env.npm_execpath)
     ? 'pnpm'
     : /yarn/.test(process.env.npm_execpath)