Skip to content

Build your personal knowledge base with Trilium Notes

fix(monorepo/electron): fix missing commons dependency in prod

Elian Doran953ad2ba1eb8
diff --git a/apps/desktop/scripts/copy-dist.ts b/apps/desktop/scripts/copy-dist.ts
index e6d18f439e..010f753607 100644
--- a/apps/desktop/scripts/copy-dist.ts
+++ b/apps/desktop/scripts/copy-dist.ts
@@ -13,6 +13,11 @@ function log(...args: any[]) {
}
try {
+ /**
+ * Copy the commons.
+ */
+ fs.copySync("../../packages/commons/build", path.join(DEST_DIR, "node_modules", "@triliumnext/commons"));
+
/**
* Copy the server.
*/