mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat: add Bun templates for create-discord-bot (#11348)
* feat: add Bun templates for create-discord-bot - Add TypeScript Bun template with complete src structure - Add JavaScript Bun template with complete src structure - Both templates mirror the Node.js versions with Bun-specific configuration Closes #11346 * fix: update template and bun template loading --------- Co-authored-by: almeidx <github@almeidx.dev> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,10 @@ export function resolvePackageManager(): PackageManager {
|
||||
return 'deno';
|
||||
}
|
||||
|
||||
if (process.versions.bun) {
|
||||
return 'bun';
|
||||
}
|
||||
|
||||
// If this is not present, return the default package manager.
|
||||
if (!npmConfigUserAgent) {
|
||||
return DEFAULT_PACKAGE_MANAGER;
|
||||
|
||||
Reference in New Issue
Block a user