From 5584a2bb4d9310376eebe0bb37dde1e58cca91c6 Mon Sep 17 00:00:00 2001 From: Hugo LE DALL Date: Sat, 11 Jul 2020 17:54:13 +0200 Subject: [PATCH] avoiding ctrl+c --- packages/cli/src/commands/new/newHandler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/commands/new/newHandler.js b/packages/cli/src/commands/new/newHandler.js index 64c974cdf9..92e6641184 100644 --- a/packages/cli/src/commands/new/newHandler.js +++ b/packages/cli/src/commands/new/newHandler.js @@ -16,8 +16,10 @@ const run = async opts => { await createEmptyAppPackage(opts) exec(`cd ${join(opts.dir, opts.applicationId)} && npm install`) console.log(chalk.green(`Budibase app ${opts.name} created!`)) + process.exit() } catch (error) { console.error(chalk.red("Error creating new app", error)) + process.exit(1) } }