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.
special pr for eric
Current Behavior
schema
(by checking if the parent dir of the schema path ends with "schema")..prisma
files from that folder, but does not pass--schema
to theprisma generate
command (see lines 186–190).schema
folder), it does pass--schema=./prisma/schema.prisma
(lines 205–211).What Needs to Change
--schema
to theprisma generate
command, regardless of folder or file.prisma.config.ts
orpackage.json
if not provided in options, but for now, the extension already requires aschema
option, so this is less urgent.Implementation Plan
--schema=<path>
to theprisma generate
command.Next Step
I will update
packages/build/src/extensions/prisma.ts
so that:--schema=<path>
to theprisma generate
command.this.options.schema
.Let’s proceed with this change.
Ran tool
Ran tool
The code has been updated so that the Prisma extension always passes the
--schema
flag to theprisma generate
command, regardless of whether the schema is in a folder or a file. The correct relative path is used in both cases, and the outdated comment was removed.There are no linter errors in the updated file.
Next steps you may want to consider:
Let me know if you want to proceed with further improvements, add support for
prisma.config.ts
, or update the docs!