feat(cli): [BREAKING] remove custom yarn logic#25457
Merged
Conversation
Contributor
size-limit report 📦
|
jkomyno
commented
Oct 18, 2024
aqrln
reviewed
Oct 29, 2024
...ges/internals/src/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.ts
Show resolved
Hide resolved
- fix #25478 `prisma version --json` should not contain non-json string.
CodSpeed Performance ReportMerging #25457 will not alter performanceComparing Summary
|
c9f3883 to
9189c93
Compare
jkomyno
added a commit
that referenced
this pull request
Nov 21, 2024
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.
BREAKING
Fixes https://github.com/prisma/team-orm/issues/1326, closes ORM-310.
This is for Prisma 6. We're merging this to
feat/nextuntil we're ready for rebasing that branch intomain.This PR gets rid of custom
schema.prismadetection logic foryarn.Some considerations:
yarnwas something of a unique scenario; for instance, we've never had any customschema.prismalookup logic forpnpmworkspacesPrisma will no longer be able to automatically to climb up the workspace tree to find the
schema.prismafile defined in the root of the workspace. E.g., say that the directory tree isand the root
package.jsonis{ "name": "pkg-json-workspace-parent", "workspaces": [ "packages/*" ], "private": true, "prisma": { "schema": "./db/schema.prisma" } }which contains the
prisma.schemaattribute.If we're running
prisma generatein./packages/a, we'll no longer climb up to./package.json, read itsprisma.schemaattribute, and use./db/schema.prismaas the default argument forprisma generate --schema <PRISMA_SCHEMA_PATH>.