]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: `pnpm create` already comes with `npm_config_user_agent`
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 22 Jul 2022 17:06:06 +0000 (01:06 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 22 Jul 2022 17:06:06 +0000 (01:06 +0800)
index.ts

index a843b143af1416f484133ae641edd60e06d08dd7..c0a18c5661fd49e125179333d967b3dde035455f 100755 (executable)
--- a/index.ts
+++ b/index.ts
@@ -396,8 +396,6 @@ 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 userAgent = process.env.npm_config_user_agent ?? ''
   const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm'