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 => { ...@@ -55,11 +55,13 @@ const nextBuild: cliCommand = argv => {
) )
} }
build(dir).catch(err => { build(dir)
// tslint:disable-next-line .then(() => process.exit(0))
console.error('> Build error occurred') .catch(err => {
printAndExit(err) // tslint:disable-next-line
}) console.error('> Build error occurred')
printAndExit(err)
})
} }
export { nextBuild } 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