Skip to content

Commit

Permalink
chore: add bun support for ace add (#4607)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahriarKh authored Jun 17, 2024
1 parent f494c52 commit 57a81f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Add extends BaseCommand {
declare verbose?: boolean

@flags.string({ description: 'Select the package manager you want to use' })
declare packageManager?: 'npm' | 'pnpm' | 'yarn' | 'yarn@berry'
declare packageManager?: 'npm' | 'pnpm' | 'bun' | 'yarn' | 'yarn@berry'

@flags.boolean({ description: 'Should we install the package as a dev dependency', alias: 'D' })
declare dev?: boolean
Expand All @@ -46,10 +46,10 @@ export default class Add extends BaseCommand {
this.packageManager || (await detectPackageManager(this.app.makePath())) || 'npm'

if (['npm', 'pnpm', 'yarn', 'yarn@berry'].includes(pkgManager)) {
return pkgManager as 'npm' | 'pnpm' | 'yarn' | 'yarn@berry'
return pkgManager as 'npm' | 'pnpm' | 'bun' | 'yarn' | 'yarn@berry'
}

throw new Error('Invalid package manager. Must be one of npm, pnpm or yarn')
throw new Error('Invalid package manager. Must be one of npm, pnpm, bun or yarn')
}

/**
Expand Down

0 comments on commit 57a81f7

Please sign in to comment.