fix(monorepo/server): fix missing monorepo dependencies

This commit is contained in:
Elian Doran 2025-04-20 23:26:50 +03:00
parent 953ad2ba1e
commit 8cc4bcb711
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -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.
*/

View File

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