-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow install only production dependencies in flat mode. #2781
Comments
PR is welcome |
Currently |
Glad I found this issue as I was just trying to do the same combo of For a frontend web project, is it safe to assume that you'd always want your For This is something that we in the web components community are really interested in because Custom Elements require you to only register one version of a tag (e.g. you can't have two versions of Ideally I'd like to be able to do something like:
|
#3251 will fix this. |
@kittens, so this works using the command line? What about in the package.json? Something like:
|
you can do it in .yarnrc file https://yarnpkg.com/en/docs/yarnrc#toc-cli-arguments |
@bestander I am unclear whether you can choose to install only dependencies in flat mode while continuing to install devDependencies in nested mode. @BYK says that you cannot do this in #4380 but here it is unclear. |
Seems like this is not possible at the moment and #3251 is not related :( |
I also would like to see this issue solved. Any ideas when it could be implemented? |
What is the current behavior?
yarn install --prod --flat
asks resolution for both production and development modules and then install all of them.What is the expected behavior?
yarn install --prod --flat
should install only production dependencies.The text was updated successfully, but these errors were encountered: