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
This commit is contained in:
Aditya Hase 2023-05-23 15:47:13 +05:30 committed by GitHub
parent 119313810e
commit 22e3ec8bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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