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 0e56f1f commit 8ef4e48Copy full SHA for 8ef4e48
index.ts
@@ -563,9 +563,15 @@ async function init() {
563
}
564
565
// Instructions:
566
- // Supported package managers: pnpm > yarn > npm
+ // Supported package managers: pnpm > yarn > bun > npm
567
const userAgent = process.env.npm_config_user_agent ?? ''
568
- const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm'
+ const packageManager = /pnpm/.test(userAgent)
569
+ ? 'pnpm'
570
+ : /yarn/.test(userAgent)
571
+ ? 'yarn'
572
+ : /bun/.test(userAgent)
573
+ ? 'bun'
574
+ : 'npm'
575
576
// README generation
577
fs.writeFileSync(
0 commit comments