Skip to content

Commit

Permalink
feat: add a slight delay just before exiting in case of SIGINT to pri…
Browse files Browse the repository at this point in the history
…nt all of the logs
  • Loading branch information
gajus committed Dec 4, 2021
1 parent 130e98b commit d63cdf3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,9 @@ if (argv['output-format'] === 'pretty') {

stream.pipe(process.stdout);

process.on('SIGINT', () => {
setTimeout(() => {
// eslint-disable-next-line node/no-process-exit
process.exit();
}, 250);
});

0 comments on commit d63cdf3

Please sign in to comment.