Skip to content

Commit 8ef4e48

Browse files
Ccjr Yueyscexbrayat
authored andcommitted
fix: Command description for Bun
1 parent 0e56f1f commit 8ef4e48

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,15 @@ async function init() {
563563
}
564564

565565
// Instructions:
566-
// Supported package managers: pnpm > yarn > npm
566+
// Supported package managers: pnpm > yarn > bun > npm
567567
const userAgent = process.env.npm_config_user_agent ?? ''
568-
const packageManager = /pnpm/.test(userAgent) ? 'pnpm' : /yarn/.test(userAgent) ? 'yarn' : 'npm'
568+
const packageManager = /pnpm/.test(userAgent)
569+
? 'pnpm'
570+
: /yarn/.test(userAgent)
571+
? 'yarn'
572+
: /bun/.test(userAgent)
573+
? 'bun'
574+
: 'npm'
569575

570576
// README generation
571577
fs.writeFileSync(

0 commit comments

Comments
 (0)