question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prisma2 packages causes Yarn install devDependencies on --prod

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmuellercommented, Mar 31, 2021

Next step: verify that this works now

1reaction
pantharshit00commented, Jan 21, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found