tim neutkens
8 years ago
committed by
Leo Lamprecht
7 changed files with 14 additions and 48 deletions
@ -0,0 +1,8 @@ |
|||||
|
module.exports = code => { |
||||
|
// 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