Skip to content

Commit

Permalink
fix(build): Propogate exit code from yarn build to bench build (#21084)…
Browse files Browse the repository at this point in the history
… (#21086)

When `yarn build` fails `bench build` ignores the error and exits with exit code 0

(cherry picked from commit 22e3ec8)

Co-authored-by: Aditya Hase <aditya@adityahase.com>
  • Loading branch information
mergify[bot] and adityahase committed May 23, 2023
1 parent 7a754b7 commit 8a14c42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion esbuild/esbuild.js
Expand Up @@ -86,7 +86,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
Expand Down

0 comments on commit 8a14c42

Please sign in to comment.