From 1dbb7533a3a0e4328cdd2040f6a39ec772d2b541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ezr?= Date: Mon, 22 Jul 2024 12:24:06 +0200 Subject: [PATCH] Propagate build process status Build process is hiding away the status and doesn't propagate it to `fec build` status code, resulting in hiding away CI errors. --- packages/config/src/bin/build-script.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config/src/bin/build-script.ts b/packages/config/src/bin/build-script.ts index 4aa45b2e4d..c23938b407 100644 --- a/packages/config/src/bin/build-script.ts +++ b/packages/config/src/bin/build-script.ts @@ -26,6 +26,7 @@ export function buildScript(argv: { [name: string]: string }, cwd: string) { subprocess.on('exit', (code: string | 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 {