[M] Add support for prisma.config.ts schema path (Prisma 7+) - #791
Merged
Conversation
maxh
force-pushed
the
support-prisma-config-ts
branch
2 times, most recently
from
December 24, 2025 15:56
8170ba9 to
da7924e
Compare
willtaft3
approved these changes
Dec 24, 2025
Contributor
|
There's an explicit recommendation to put this config file in a .config dir in the prisma docs. Might be good to extend the resolution to support that later. |
Prisma 7 introduces a new configuration file (prisma.config.ts) and deprecates the package.json#prisma.schema field. This adds support for reading the schema path from prisma.config.ts while maintaining backwards compatibility with the legacy package.json configuration. Schema path discovery priority: 1. CLI arguments (highest) 2. prisma.config.ts schema field 3. package.json#prisma.schema (legacy) 4. Default prisma/schema.prisma (lowest) Closes #790 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
maxh
force-pushed
the
support-prisma-config-ts
branch
from
December 25, 2025 01:08
da7924e to
a15067a
Compare
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.
prisma.config.ts(Prisma 7+)package.json#prisma.schema(legacy)Closes #790