Prisma2 packages causes Yarn install devDependencies on --prod
See original GitHub issueI don’t know which repo should this issue belong to, but apparently, prisma
packages causes yarn --prod
to install all devDependencies
(not npm install --prod=true
). Adding either @prisma/photon
or nexus-prisma
to dependencies
cause the wrong yarn behavior, and it is fixed if I moved all prisma
packages to devDependencies
.
Please have a look into this Yarn issue I created as well. https://github.com/yarnpkg/yarn/issues/7801
Could anyone please explain this problem?
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Why does yarn install dev dependencies but I just need the ...
devDependencies are the dependencies that were used to compile the sources of one package, therefore if I am in a production environment I...
Read more >Prisma CLI Installation (Reference)
The Prisma CLI is typically installed as a development dependency, that's why the --save-dev (npm) and --dev (Yarn) options are used in the...
Read more >Serverless Prisma 2 with GCP Cloud Run - MeetupFeed
So also, the problem with yarn install is that it's installing both the production and the dev dependencies. So you have a bigger,...
Read more >@prisma/client 2.21.0 on Node.js Yarn - NewReleases.io
Prisma2 packages causes Yarn install devDependencies on --prod · Disconnect on a null foreign key should not error · count throws an error...
Read more >Cannot upload build function to AWS Lambda - Support
My build seems to execute without failure, but due to unknown reasons, ... It is a public repo so I cloned it, ran...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Next step: verify that this works now
@divyenduz This issue does touch on the package size for a bit but the actual problem is different here which is yarn install all of our packages when we specify nexus-prisma as a dependency and prisma2 a devDependency in production mode. So I think we should keep this open for now.