Skip to content

Build your personal knowledge base with Trilium Notes

build(copy-dist): copy over existing node_modules

Panagiotis Papadopoulos6fb270e4f8d8
diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts
index 2505c31c3b..6d9fcf0e0b 100644
--- a/bin/copy-dist.ts
+++ b/bin/copy-dist.ts
@@ -15,6 +15,7 @@ function log(...args: any[]) {
try {
const assetsToCopy = new Set([
+ // copy node_module, to avoid downloading packages a 2nd time during pruning
"./node_modules",
"./images",
"./libraries",