docs(create-discord-bot): support bun in create-discord-bot (#9798)

This commit is contained in:
Colin McDonnell
2023-08-28 00:36:26 -07:00
committed by GitHub
parent 85d03a3000
commit 7157748fe3
13 changed files with 38 additions and 1 deletions

View File

@@ -16,7 +16,14 @@
## About
`npx create-discord-bot ./your/chosen/directory/`. It's as easy as that to create a simple Discord bot to begin your journey with the Discord API.
It's easy to create a simple Discord bot to begin your journey with the Discord API.
```sh
npm create discord-bot ./your/chosen/directory
yarn create discord-bot ./your/chosen/directory
pnpm create discord-bot ./your/chosen/directory
bunx create-discord-bot ./your/chosen/directory
```
## Links

View File

@@ -31,6 +31,10 @@ export function resolvePackageManager(): PackageManager {
return 'pnpm';
}
if (npmConfigUserAgent.startsWith('bun')) {
return 'bun';
}
console.error(
picocolors.yellow(
`Detected an unsupported package manager (${npmConfigUserAgent}). Falling back to ${DEFAULT_PACKAGE_MANAGER}.`,