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
prisma db push creates new prisma client inside of ./node_modules/@prisma/client #4885
Comments
Could not reproduce with a simple SQLite schema like
It's confusing that the path actually used for generation is |
@timsuchanek this last part is probably not yet fixed?
|
Scheduling this so we can look and see if it's fixe.d |
I can also confirm this is more of a cosmetic issue which we can fix :) |
Bug description
I noticed that if my
schema.prisma
generator client
directive does not explicitly set theoutput
dir to"./node_modules/.prisma/client"
then when I runnpx prisma db push --preview-feature --force
the new prisma client gets generated in./node_modules/@prisma/client
. Which, from my understanding, should not be the case. My understanding is that by default the client should be generated in./node_modules/.prisma/client
How to reproduce
Run
npx prisma db push --preview-feature --force
without an explicitoutput
dir in thegenerator client
directive.Expected behavior
npx prisma db push --preview-feature --force
should have generated the prisma client inside of./node_modules/.prisma/client
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: