Merged
Conversation
✅ Deploy Preview for cedarjs canceled.
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 1m 52s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 6s | View ↗ |
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 8s | View ↗ |
nx run-many -t build |
✅ Succeeded | 8s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-02-26 17:24:33 UTC
Contributor
Greptile SummaryPrepares Cedar for Prisma v7 by centralizing all Prisma imports through Major Changes:
Critical Issues Found:
Confidence Score: 1/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User Code] -->|Before: import from| B["@prisma/client"]
A -->|After: import from| C["src/lib/db"]
C -->|Re-exports| B
D[Generator Templates] -->|Generate code with| C
E[GraphQL Codegen] -->|Generates types from| C
F[Codemod] -->|Migrates imports to| C
C -->|Prisma v7: switch to| G["../db/generated/prisma/client.js"]
style B fill:#f9f,stroke:#333
style C fill:#9f9,stroke:#333
style G fill:#99f,stroke:#333
Last reviewed commit: e38a132 |
Tobbe
added a commit
that referenced
this pull request
Mar 1, 2026
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.

This PR prepares for Prisma v7 by introducing an indirection layer for all Prisma imports. Prisma v7 will change where the generated client lives (from
@prisma/clientto a local project path like./generated/prisma/), which would normally require rewriting imports across every service, test, and scenario file.This PR makes the import change now (if you want), while still on v6, to isolate major code changes from the Prisma v7 upgrade, to make it easier to debug any issues (fewer moving parts). The PR does that by making
src/lib/dbre-export everything from Prisma, then point all consumer code atsrc/lib/dbinstead of@prisma/client. This is done now on v6 where both paths work, so the change can be validated safely. When v7 lands, only one line indb.tsneeds to change:The PR touches four areas:
db.ts templates
Adds
export * from '@prisma/client'sosrc/lib/dbbecomes a superset of@prisma/clientGenerator templates & codegen
Newly generated services, tests, scenarios, and GraphQL type files now import from
src/lib/dbinstead of@prisma/clientA jscodeshift codemod
prismaV7Prep.tsautomates the migration for existing user projectsAll fixture/test-project files
Updated to match the new pattern