Skip to content

Build your personal knowledge base with Trilium Notes

fix(monorepo/server): copying of source code

Elian Doran14b8578ff752
diff --git a/apps/server/.gitignore b/apps/server/.gitignore
index 0968122d49..20f3839c05 100644
--- a/apps/server/.gitignore
+++ b/apps/server/.gitignore
@@ -1,5 +1,6 @@
node_modules
build
+build-ts
data
data-integration
!data-integration/document.db
\ No newline at end of file
diff --git a/apps/server/scripts/copy-dist.ts b/apps/server/scripts/copy-dist.ts
index 69f3c84e36..a834b785d9 100644
--- a/apps/server/scripts/copy-dist.ts
+++ b/apps/server/scripts/copy-dist.ts
@@ -71,6 +71,7 @@ try {
fs.copySync(dir, path.normalize(path.join(PUBLIC_DIR, path.basename(dir))));
}
+ fs.copySync(path.join(serverDir, "build-ts", "apps", "server", "src"), path.join(DEST_DIR, "src"));
fs.copySync(path.join(rootDir, "packages", "turndown-plugin-gfm", "src"), path.join(DEST_DIR, "src", "public", "app-dist", "turndown-plugin-gfm"));
console.log("Copying complete!")
diff --git a/apps/server/tsconfig.json b/apps/server/tsconfig.json
index 29873d452f..e330fabae0 100644
--- a/apps/server/tsconfig.json
+++ b/apps/server/tsconfig.json
@@ -3,7 +3,7 @@
"module": "NodeNext",
"declaration": false,
"sourceMap": true,
- "outDir": "./build",
+ "outDir": "./build-ts",
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,