We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d47da commit ab9398bCopy full SHA for ab9398b
index.js
@@ -361,7 +361,7 @@ async function init() {
361
// Supported package managers: pnpm > yarn > npm
362
// Note: until <https://github.com/pnpm/pnpm/issues/3505> is resolved,
363
// it is not possible to tell if the command is called by `pnpm init`.
364
- const userAgent = process.env.npm_config_user_agent ?? ''
+ const userAgent = process.env.npm_config_user_agent ? process.env.npm_config_user_agent : ''
365
const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm'
366
367
// README generation
0 commit comments