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:
parent
119313810e
commit
22e3ec8bf4
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue