From: Haoqun Jiang Date: Wed, 11 Aug 2021 15:08:54 +0000 (+0800) Subject: chore: add a note that `pnpm init` cannot be distinguished at the moment X-Git-Tag: v3.0.0-alpha.3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6652977967ad0c152447057b86b67da1fb96f345;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: add a note that `pnpm init` cannot be distinguished at the moment --- diff --git a/index.js b/index.js index cab65f72..c99f0169 100755 --- a/index.js +++ b/index.js @@ -304,6 +304,8 @@ async function init() { // Instructions: // Supported package managers: pnpm > yarn > npm + // Note: until 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)