Skip to content

Commit

Permalink
fix(cli): restore setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Feb 8, 2020
1 parent 76b6871 commit 6ddc1a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions @commitlint/cli/src/cli.ts
Expand Up @@ -104,10 +104,12 @@ const cli = yargs
).argv;

main(cli).catch(err => {
if (err.type === pkg.name) {
process.exit(1);
}
throw err;
setTimeout(() => {
if (err.type === pkg.name) {
process.exit(1);
}
throw err;
}, 0)
});

async function main(options: CliFlags) {
Expand Down

0 comments on commit 6ddc1a1

Please sign in to comment.