Browse Source
* Prevent doubled usage information output * Return instead of exiting without util * Made it workmaster
committed by
GitHub
14 changed files with 22 additions and 25 deletions
@ -1,8 +1,7 @@ |
|||
module.exports = code => { |
|||
module.exports = code => new Promise(() => { |
|||
// We give stdout some time to flush out
|
|||
// because there's a node bug where
|
|||
// stdout writes are asynchronous
|
|||
// https://github.com/nodejs/node/issues/6456
|
|||
/* eslint-disable unicorn/no-process-exit */ |
|||
setTimeout(() => process.exit(code || 0), 100) |
|||
} |
|||
}) |
|||
|
Loading…
Reference in new issue