Skip to content

Commit

Permalink
add process.exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Sep 1, 2020
1 parent d69c667 commit d3e0846
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dev/run_i18n_integrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ run(
const reporter = new ErrorReporter();
const messages: Map<string, { message: string }> = new Map();
await list.run({ messages, reporter });
process.exitCode = 0;
} catch (error) {
process.exitCode = 1;
if (error instanceof ErrorReporter) {
Expand All @@ -120,6 +121,7 @@ run(
log.error(error);
}
}
process.exit();
},
{
flags: {
Expand Down

0 comments on commit d3e0846

Please sign in to comment.