From 22e3ec8bf4b49c6bb4cef017652e54354bd4cc5d Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Tue, 23 May 2023 15:47:13 +0530 Subject: [PATCH] fix(build): Propogate exit code from yarn build to bench build (#21084) When `yarn build` fails `bench build` ignores the error and exits with exit code 0 --- esbuild/esbuild.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js index 3c5c305665..4804f0e25f 100644 --- a/esbuild/esbuild.js +++ b/esbuild/esbuild.js @@ -87,7 +87,10 @@ const NODE_PATHS = [].concat( execute() .then(() => RUN_BUILD_COMMAND && run_build_command_for_apps(APPS)) - .catch((e) => console.error(e)); + .catch((e) => { + console.error(e); + throw e; + }); if (WATCH_MODE) { // listen for open files in editor event