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);