Fail on build error

This commit is contained in:
Vendicated 2022-10-09 22:35:59 +02:00
parent 304bf4fe29
commit 9e6ee4df52
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -118,4 +118,7 @@ await Promise.all([
]).catch(err => { ]).catch(err => {
console.error("Build failed"); console.error("Build failed");
console.error(err.message); console.error(err.message);
// make ci fail
if (!watch)
process.exitCode = 1;
}); });