Skip to content

Commit

Permalink
Propagate build process status
Browse files Browse the repository at this point in the history
Build process is hiding away the status and doesn't propagate it to `fec build` status code, resulting in hiding away CI errors.
  • Loading branch information
ezr-ondrej committed Jul 22, 2024
1 parent 7402669 commit d96b936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/config/src/bin/build-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ export function buildScript(argv: { [name: string]: string }, cwd: string) {
fecLogger(LogType.error, err);
process.exit(1);
});
subprocess.on('exit', (code: string | null, signal: string) => {
subprocess.on('exit', (code: number | null, signal: string) => {
if (code) {
fecLogger(LogType.error, 'Exited with code', code);
process.exit(code);
} else if (signal) {
fecLogger(LogType.error, 'Exited with signal', signal);
} else {
Expand Down

0 comments on commit d96b936

Please sign in to comment.