mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(monorepo/server): fix missing monorepo dependencies
This commit is contained in:
parent
953ad2ba1e
commit
8cc4bcb711
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user