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.
yarn
init
npx
1 parent 3945227 commit 3906b90Copy full SHA for 3906b90
packages/cli/src/commands/init/init.ts
@@ -331,16 +331,8 @@ async function createProject(
331
function userAgentPackageManager() {
332
const userAgent = process.env.npm_config_user_agent;
333
334
- if (userAgent) {
335
- if (userAgent.startsWith('yarn')) {
336
- return 'yarn';
337
- }
338
- if (userAgent.startsWith('npm')) {
339
- return 'npm';
340
341
- if (userAgent.startsWith('bun')) {
342
- return 'bun';
343
+ if (userAgent && userAgent.startsWith('bun')) {
+ return 'bun';
344
}
345
346
return null;
0 commit comments