Unverified Commit b8a7cd8c authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Exit process after build (#7614)

parent c39c5d26
......@@ -55,11 +55,13 @@ const nextBuild: cliCommand = argv => {
)
}
build(dir).catch(err => {
// tslint:disable-next-line
console.error('> Build error occurred')
printAndExit(err)
})
build(dir)
.then(() => process.exit(0))
.catch(err => {
// tslint:disable-next-line
console.error('> Build error occurred')
printAndExit(err)
})
}
export { nextBuild }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment