Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(monorepo/server): fix missing monorepo dependencies
Elian Doran8cc4bcb7110e
diff --git a/apps/desktop/scripts/copy-dist.ts b/apps/desktop/scripts/copy-dist.tsindex 010f753607..e6d18f439e 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.tsindex 0955d00e61..b20a905657 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);