mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-14 03:11:19 -06:00
10 lines
200 B
JavaScript
10 lines
200 B
JavaScript
exports.exitProcess = true
|
|
|
|
exports.exit = function (code) {
|
|
if (exports.exitProcess) {
|
|
process.exit(code)
|
|
} else if (code > 0) {
|
|
throw new Error(`Process exited with code ${code}`)
|
|
}
|
|
}
|