From 78760ea2181529c12434b3171b4dd791c9aa5fa2 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sat, 23 Jul 2022 01:06:06 +0800 Subject: [PATCH] chore: `pnpm create` already comes with `npm_config_user_agent` --- index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.ts b/index.ts index a843b143..c0a18c56 100755 --- a/index.ts +++ b/index.ts @@ -396,8 +396,6 @@ 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 userAgent = process.env.npm_config_user_agent ?? '' const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm' -- 2.39.5