Skip to content

Build your personal knowledge base with Trilium Notes

build(copy-dist): exit on any caught error to make sure copy-dist fails during CI if any error occurs

Panagiotis Papadopoulosd7aedfbd36b2
diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts
index 473896507c..03b0c751bb 100644
--- a/bin/copy-dist.ts
+++ b/bin/copy-dist.ts
@@ -105,4 +105,5 @@ try {
} catch(err) {
console.error("Error during copy:", err)
+ process.exit(1)
}