Skip to content

Commit 78760ea

Browse files
committed
chore: pnpm create already comes with npm_config_user_agent
1 parent 750c23d commit 78760ea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,6 @@ async function init() {
396396

397397
// Instructions:
398398
// Supported package managers: pnpm > yarn > npm
399-
// Note: until <https://github.com/pnpm/pnpm/issues/3505> is resolved,
400-
// it is not possible to tell if the command is called by `pnpm init`.
401399
const userAgent = process.env.npm_config_user_agent ?? ''
402400
const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm'
403401

0 commit comments

Comments
 (0)