diff --git a/Dockerfile b/Dockerfile index 472edc45..a4a76456 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ ENV NPM_CONFIG_CACHE=/tmp WORKDIR /usr/src/app COPY server/dist server/dist +COPY server/node_modules server/node_modules COPY frontend/dist/index.html frontend/dist/index.html WORKDIR /usr/src/app/server diff --git a/server/bun.lockb b/server/bun.lockb index 3dcacbdb..98922a5e 100755 Binary files a/server/bun.lockb and b/server/bun.lockb differ diff --git a/server/package.json b/server/package.json index b00819b1..19bd3eec 100644 --- a/server/package.json +++ b/server/package.json @@ -8,7 +8,7 @@ "type": "module", "scripts": { "start": "bun run build --watch & NAIS_CLUSTER_NAME=local node --watch --trace-warnings dist/server.js", - "build": "bun build ./src/server.ts --target node --format esm --sourcemap --outdir dist", + "build": "tsc --outdir dist --sourcemap && tsc-alias -p tsconfig.json --resolve-full-paths", "typecheck": "tsc --noEmit", "lint": "biome check" }, @@ -28,6 +28,7 @@ "@biomejs/biome": "1.9.4", "@types/bun": "1.1.13", "@types/node": "22.9.0", + "tsc-alias": "1.8.10", "typescript": "5.6.3" } } diff --git a/server/tsconfig.json b/server/tsconfig.json index 979ca195..16f4d897 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -6,7 +6,7 @@ "module": "ESNext", "moduleDetection": "force", // Bundler mode - "moduleResolution": "Bundler", + "moduleResolution": "node", // Best practices "strict": true, "skipLibCheck": true,