Skip to content

Commit

Permalink
chore(commands): continue by default installation of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed May 26, 2024
1 parent bdda97a commit c48e72b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ export default class Add extends BaseCommand {
const cmd = colors.grey(`${this.packageManager} add ${this.dev ? '-D ' : ''}${this.name}`)
this.logger.info(`Installing the package using the following command : ${cmd}`)

const shouldInstall = await this.prompt.confirm('Continue ?', { name: 'install' })
const shouldInstall = await this.prompt.confirm('Continue ?', {
name: 'install',
default: true,
})

if (!shouldInstall) {
this.logger.info('Installation cancelled')
return
Expand Down

0 comments on commit c48e72b

Please sign in to comment.