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): copying of source code
Elian Doran14b8578ff752
diff --git a/apps/server/.gitignore b/apps/server/.gitignoreindex 0968122d49..20f3839c05 100644--- a/apps/server/.gitignore+++ b/apps/server/.gitignore@@ -1,5 +1,6 @@node_modulesbuild+build-tsdatadata-integration!data-integration/document.db\ No newline at end of filediff --git a/apps/server/scripts/copy-dist.ts b/apps/server/scripts/copy-dist.tsindex 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.jsonindex 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,