Skip to content

fix(db): generate Prisma Client on workspace install (T02b) - #12

Merged
darunr1 merged 1 commit into
mainfrom
fix-database-prisma-postinstall
Nov 12, 2026
Merged

darunr1 merged 1 commit into
mainfrom
fix-database-prisma-postinstall

Conversation

@darunr1

@darunr1 darunr1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Scope (T02b)

Root cause

The @prisma/client dependency postinstall completes with a warning on a clean pnpm install --frozen-lockfile: it cannot discover the non-root schema (packages/database/prisma/schema.prisma). Later explicit prisma generate works. Running the generator in the database workspace after dependencies are installed ensures the local Prisma Client is generated automatically.

Verification

  • Checked exact package scripts and Prisma schema location.
  • Confirmed CI installation log contains packages/database postinstall$ prisma generate --schema=./prisma/schema.prisma and a successful Prisma Client v6.19.3 generation.
  • All four GitHub Actions jobs passed (quality, web, worker, renderer image builds): https://github.com/darunr1/Agentic-Media-Generation-Platform/actions/runs/43126094497.
  • Clean-clone startup on a second machine remains to be performed by a contributor.

Caveat: Prisma CLI is a devDependency. This postinstall is designed for the full development workspace install; a production-only install (--prod) may require a separate generation/build stage. The dependency's own warning may still appear earlier in install.

Integration order: Merge T02b before removing the explicit pnpm db:generate from PR #11; until then, leave that step as a reliable fallback. No PR merged here.

@darunr1
darunr1 merged commit 18cf249 into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant