fix(backend): Compile seed.ts to JS for production use

This commit is contained in:
fullsizemalt 2026-01-08 11:01:42 -08:00
parent 3aa0277ab7
commit 835c062c88
3 changed files with 3 additions and 6 deletions

View file

@ -36,9 +36,6 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/package*.json ./
# Install ts-node for seed script
RUN npm install -g ts-node typescript
# Run as non-root
USER node

View file

@ -13,7 +13,7 @@
"seed:all": "npx prisma db seed && node prisma/seed-demo.js"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
"seed": "node dist/prisma/seed.js"
},
"dependencies": {
"@fastify/cors": "^9.0.1",

View file

@ -6,14 +6,14 @@
"ES2020"
],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": [
"src/**/*"
"src/**/*",
"prisma/**/*"
],
"exclude": [
"node_modules",