From 9e6ee4df52c92d5dc70a9ba59f3181fff1176676 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 9 Oct 2022 22:35:59 +0200 Subject: Fail on build error --- build.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.mjs b/build.mjs index b59ebef..e579786 100755 --- a/build.mjs +++ b/build.mjs @@ -118,4 +118,7 @@ await Promise.all([ ]).catch(err => { console.error("Build failed"); console.error(err.message); + // make ci fail + if (!watch) + process.exitCode = 1; }); -- cgit