mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
docs(create-discord-bot): support bun in create-discord-bot (#9798)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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}.`,
|
||||
|
||||
Reference in New Issue
Block a user