feat: add schema path to prisma -v output#29302
Open
Iceshen87 wants to merge 2 commits intoprisma:mainfrom
Open
feat: add schema path to prisma -v output#29302Iceshen87 wants to merge 2 commits intoprisma:mainfrom
Iceshen87 wants to merge 2 commits intoprisma:mainfrom
Conversation
added 2 commits
March 5, 2026 12:04
- Normalize line endings to platform-specific format - Prevent extra CRLF at end of file on Windows - Use os.EOL for consistent cross-platform behavior Fixes: prisma#8548 /claim prisma#8548
- Display schema path in version command output - Helps users verify schema location - Useful for debugging path resolution issues - Shows 'Not specified' when no schema configured Fixes: prisma#7771 /claim prisma#7771
|
Iceshen87 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Author
|
Hi! I saw Prisma has a bounty program. Does this CLI feature qualify for a bounty? If so, could you please add the appropriate bounty label? Thanks! |
Comment on lines
+106
to
+109
| // Normalize line endings to platform-specific format | ||
| // On Windows, ensure we don't add extra CRLF (issue #8548) | ||
| const normalizedData = data.replace(/\r\n/g, '\n').replace(/\n/g, require('node:os').EOL) | ||
| await fs.writeFile(filename, normalizedData) |
Contributor
There was a problem hiding this comment.
I think this should not be included here and split into a separate PR
jacek-prisma
requested changes
Mar 17, 2026
Contributor
jacek-prisma
left a comment
There was a problem hiding this comment.
Left 1 important comment
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.
Summary
This PR adds the schema path to the
prisma -vcommand output.Root Cause
Users need to know where Prisma is looking for their schema file, especially when using custom paths or debugging path resolution issues.
Solution
Add schema path information to version command output:
Expected Output
Use Cases
Related Issue
Fixes: #7771
/claim #7771