diff --git a/apps/server/.gitignore b/apps/server/.gitignore index 0968122d4..20f3839c0 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 69f3c84e3..a834b785d 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 29873d452..e330fabae 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,