Skip to content

Commit a04abf2

Browse files
roberteinsleclaude
andcommitted
Fix TypeScript build issues in backend
- Remove prisma/seed.ts from tsconfig include (outside rootDir) - Use direct path to tsc binary instead of npx - npx tsc was installing wrong package (tsc@2.0.4) - Fixes TS6059 error about rootDir Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent fa4a1eb commit a04abf2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN npm run prisma:generate --workspace=apps/backend && \
5656
ENV NODE_ENV=build
5757
RUN echo "Starting TypeScript build..." && \
5858
cd apps/backend && \
59-
npx tsc && \
59+
../../node_modules/.bin/tsc && \
6060
echo "✓ TypeScript build completed" && \
6161
ls -la dist/
6262
ENV NODE_ENV=production

apps/backend/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"rootDir": "./src",
99
"types": ["node"]
1010
},
11-
"include": ["src/**/*", "prisma/seed.ts"],
12-
"exclude": ["node_modules", "dist"]
11+
"include": ["src/**/*"],
12+
"exclude": ["node_modules", "dist", "prisma"]
1313
}

0 commit comments

Comments
 (0)