Browse Source
Merge pull request #433 from HugoLd/bugfix/adding-process-exit
avoiding ctrl+c to exit from `budi new`
gh-pages
Michael Shanks
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|