Skip to content

Commit 6ddc1a1

Browse files
committed
fix(cli): restore setTimeout
1 parent 76b6871 commit 6ddc1a1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

@commitlint/cli/src/cli.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ const cli = yargs
104104
).argv;
105105

106106
main(cli).catch(err => {
107-
if (err.type === pkg.name) {
108-
process.exit(1);
109-
}
110-
throw err;
107+
setTimeout(() => {
108+
if (err.type === pkg.name) {
109+
process.exit(1);
110+
}
111+
throw err;
112+
}, 0)
111113
});
112114

113115
async function main(options: CliFlags) {

0 commit comments

Comments
 (0)