From c48e72b1bc5287c5add43a6dc13cd91ccf37af03 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Sun, 26 May 2024 11:16:11 +0200 Subject: [PATCH] chore(commands): continue by default installation of packages --- commands/add.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/add.ts b/commands/add.ts index 25018e50..220efd3d 100644 --- a/commands/add.ts +++ b/commands/add.ts @@ -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