Repository navigation
fix(db): generate Prisma Client on workspace install (T02b) - #12
Merged
Merged
Conversation
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope (T02b)
postinstallscript topackages/database/package.json:prisma generate --schema=./prisma/schema.prisma.Root cause
The
@prisma/clientdependency postinstall completes with a warning on a cleanpnpm install --frozen-lockfile: it cannot discover the non-root schema (packages/database/prisma/schema.prisma). Later explicitprisma generateworks. Running the generator in the database workspace after dependencies are installed ensures the local Prisma Client is generated automatically.Verification
packages/database postinstall$ prisma generate --schema=./prisma/schema.prismaand a successful Prisma Client v6.19.3 generation.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:generatefrom PR #11; until then, leave that step as a reliable fallback. No PR merged here.