fix: generate Prisma client before TypeScript build
Some checks failed
Basil CI/CD Pipeline / Code Linting (push) Successful in 58s
Basil CI/CD Pipeline / Web Tests (push) Successful in 1m10s
Basil CI/CD Pipeline / API Tests (push) Successful in 1m22s
Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 59s
Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m10s
Basil CI/CD Pipeline / Build All Packages (push) Failing after 1m31s
Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (push) Has been skipped
Basil CI/CD Pipeline / Trigger Deployment (push) Has been skipped

The build was failing because Prisma client types weren't being generated
before running tsc. This caused errors like:

- Module '"@prisma/client"' has no exported member 'User'
- Property 'role' does not exist on type 'User'
- Property 'id' does not exist on type 'User'

Changed the build script from:
  "build": "tsc"
To:
  "build": "prisma generate && tsc"

This ensures the Prisma client is generated with all model types before
TypeScript compilation.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-15 14:59:36 +00:00
parent 2d24959d90
commit 101a5392d0

View File

@@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"build": "prisma generate && tsc",
"start": "node dist/index.js",
"test": "vitest run",
"test:watch": "vitest",