Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ef4e48

Browse files
Ccjr Yueyscexbrayat
Ccjr Yueys
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)

AltStyle によって変換されたページ (->オリジナル) /