From 8cc4bcb7110e5bc3fc4b551171ed19c46572e274 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 20 Apr 2025 23:26:50 +0300 Subject: [PATCH] fix(monorepo/server): fix missing monorepo dependencies --- apps/desktop/scripts/copy-dist.ts | 5 ----- apps/server/scripts/copy-dist.ts | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/desktop/scripts/copy-dist.ts b/apps/desktop/scripts/copy-dist.ts index 010f75360..e6d18f439 100644 --- a/apps/desktop/scripts/copy-dist.ts +++ b/apps/desktop/scripts/copy-dist.ts @@ -13,11 +13,6 @@ function log(...args: any[]) { } try { - /** - * Copy the commons. - */ - fs.copySync("../../packages/commons/build", path.join(DEST_DIR, "node_modules", "@triliumnext/commons")); - /** * Copy the server. */ diff --git a/apps/server/scripts/copy-dist.ts b/apps/server/scripts/copy-dist.ts index 0955d00e6..b20a90565 100644 --- a/apps/server/scripts/copy-dist.ts +++ b/apps/server/scripts/copy-dist.ts @@ -85,6 +85,11 @@ try { fs.mkdirpSync(DEST_DIR); copyNodeModules(path.join(serverDir, "package.json")); + + // Copy monorepo assets. + fs.copySync("../../packages/commons/build", path.join(DEST_DIR, "node_modules", "@triliumnext/commons")); + fs.copySync("../../packages/turndown-plugin-gfm", path.join(DEST_DIR, "node_modules", "@triliumnext/turndown-plugin-gfm")); + copyAssets(clientDir, path.join(DEST_DIR, "src", "public"), clientAssets); copyAssets(serverDir, path.join(DEST_DIR), serverAssets); copyAssets(rootDir, path.join(DEST_DIR), rootAssets);