Skip to content

[M] Add support for prisma.config.ts schema path (Prisma 7+) - #791

Merged
maxh merged 1 commit into
mainfrom
support-prisma-config-ts
Dec 29, 2025
Merged

[M] Add support for prisma.config.ts schema path (Prisma 7+)#791
maxh merged 1 commit into
mainfrom
support-prisma-config-ts

Conversation

@maxh

@maxh maxh commented Dec 24, 2025

Copy link
Copy Markdown
Collaborator
  • Adds support for reading schema path from prisma.config.ts (Prisma 7+)
  • Maintains backwards compatibility with package.json#prisma.schema (legacy)
  • Schema path discovery priority: CLI args > prisma.config.ts > package.json > default

Closes #790

@maxh maxh changed the title Add support for prisma.config.ts schema path (Prisma 7+) [M] Add support for prisma.config.ts schema path (Prisma 7+) Dec 24, 2025
@maxh
maxh force-pushed the support-prisma-config-ts branch 2 times, most recently from 8170ba9 to da7924e Compare December 24, 2025 15:56
@willtaft3

Copy link
Copy Markdown
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
maxh force-pushed the support-prisma-config-ts branch from da7924e to a15067a Compare December 25, 2025 01:08
@maxh
maxh merged commit cc33851 into main Dec 29, 2025
2 checks passed
@maxh
maxh deleted the support-prisma-config-ts branch December 29, 2025 15:00
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.

Support for Prisma config file (prisma.config.ts)

2 participants