-
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
Makee it possiblee to disable optional dependecies for a module in package.json #5375
Comments
There is |
This is not the |
Ah, I see, thanks for clarification |
Got it. |
Some packages do need them though. For example But an option in yarnrc to at least always apply that flag in a project as it otherwise must be documented to always use and can still be forgotten would be a great start. |
@Pajn, actually you can set it up via .yarnrc files per project https://yarnpkg.com/en/docs/yarnrc#toc-cli-arguments |
Do you want to request a feature or report a bug?
a feature
What is the current behavior?
To avoid installing optional dependencies I have to use a flag every time I run yarn. Also that flag is global so I can't ignore optional dependencies for package A but install them for package B.
What is the expected behavior?
It should be possible to specify in package.json that I never want optional dependecies for a package.
For example
In the future it would be nice if I could be even more granular and for example only install zmq from mosca but not leveldown or the others. However the immediate need is to just disable all of them.
The text was updated successfully, but these errors were encountered: