fix: fail code when build fails in production
In production it is useful to fail with proper exit code. To avoid silently pushing bad assets in built pipelines.
This commit is contained in:
parent
06aaaaaedf
commit
1ba99396bc
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ async function execute() {
|
|||
log_error("There were some problems during build");
|
||||
log();
|
||||
log(chalk.dim(e.stack));
|
||||
if (process.env.CI) {
|
||||
if (process.env.CI || PRODUCTION) {
|
||||
process.kill(process.pid);
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue