From 953ad2ba1eb8b0feda28d03d59ee79f5414f6c80 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 20 Apr 2025 23:10:24 +0300 Subject: [PATCH] fix(monorepo/electron): fix missing commons dependency in prod --- apps/desktop/scripts/copy-dist.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/scripts/copy-dist.ts b/apps/desktop/scripts/copy-dist.ts index e6d18f439..010f75360 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. */