未验证 提交 b8a7cd8c 编写于 作者: J Joe Haddad 提交者: GitHub

Exit process after build (#7614)

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册