Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use optional client output location when it exists #18

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Use optional client output location when it exists #18

merged 1 commit into from
Nov 23, 2023

Conversation

dustin-engstrom
Copy link
Contributor

The import path in the generated output assumes the Prisma client will always exist in the default location. But the Prisma client config allows users to specify a different output location:

generator client {
  provider = "prisma-client-js"
  output   = "../src/generated/client"
}

This change checks for the optional output value and uses it in the generated import path instead if it exists. Otherwise it defaults to the current behavior.

@luisrudge luisrudge merged commit 130bed7 into luisrudge:main Nov 23, 2023
1 check passed
@luisrudge
Copy link
Owner

Thanks for the PR! Released in 0.13.0

@dustin-engstrom dustin-engstrom deleted the feature/client-output-location branch November 29, 2023 16:37
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.

2 participants