fix(orchestrator): copy schema into orchestrator/prisma/ for local prisma generate
Some checks failed
ci/woodpecker/push/ci Pipeline failed

Prisma was climbing the directory tree to find a project root and landing at
/app/apps/ which has no package.json. Fix: copy the API schema directly into
apps/orchestrator/prisma/schema.prisma and run generate from within the
orchestrator package context using node_modules/.bin/prisma directly.

This keeps prisma generate fully self-contained within the orchestrator package
and avoids all cross-package project-root detection issues.
This commit is contained in:
2026-03-07 09:59:58 -06:00
parent fc4699ca51
commit b5007885ad
2 changed files with 10 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
"dev": "nest start --watch",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"prisma:generate": "prisma generate --schema=../api/prisma/schema.prisma",
"prisma:generate": "prisma generate --schema=./prisma/schema.prisma",
"start": "node dist/main.js",
"start:debug": "nest start --debug --watch",
"start:dev": "nest start --watch",
@@ -52,5 +52,8 @@
"tsconfig-paths": "^4.2.0",
"typescript": "^5.8.2",
"vitest": "^4.0.18"
},
"prisma": {
"schema": "prisma/schema.prisma"
}
}