Skip to content

Commit

Permalink
fix(): inherit process exit code (start command) #1044
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 17, 2021
1 parent 9081f9e commit dd22171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actions/start.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ export class StartAction extends BuildAction {
outDirName,
binaryToRun,
);
childProcessRef.on('exit', () => (childProcessRef = undefined));
childProcessRef.on('exit', (code: number) => {
process.exitCode = code;
childProcessRef = undefined;
});
}
};
}
Expand Down

0 comments on commit dd22171

Please sign in to comment.