Make @types/pg a direct dependency of adapter-pg#29277
Make @types/pg a direct dependency of adapter-pg#29277jacek-prisma merged 2 commits intoprisma:mainfrom
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughMoved Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
packages/adapter-pg/package.json
e07d336 to
97f201f
Compare
|
The force push changes the name of the commit to match project conventions. (Sorry, I'm new to this). |
|
Hey @jacek-prisma! Is there anything I need to do on my end to get this PR merged? |
|
I intend to merge this when CI is finished |
What changed
@types/pgwas moved from adevDependencyto a regulardependencyinadapter-pg'spackage.json, and the pnpm lockfile entries were updated accordingly.Why
When using
adapter-pg, the TypeScript types forpgare not automatically available — they live in@types/pg, which is a separate package that the adapter consumed only as a dev dependency. Because of this, consumers who installadapter-pgend up with a poor developer experience: the adapter's types fail to load correctly at the consumer's side, since TypeScript can't resolve the underlyingpgtypes without@types/pgbeing present.The problem is subtle and frustrating: the user has no reason to know that
adapter-pginternally depends on@types/pg, and nothing tells them they need to install it manually. The fix is to make@types/pga direct, non-dev dependency so it is automatically installed wheneveradapter-pgis installed — both for the end user's type resolution and for the build itself.Impact
No runtime behavior changes. This is a types-only fix that improves the out-of-the-box TypeScript experience for anyone using
adapter-pg.Summary by CodeRabbit