Add command-line argument to hide dedupe warnings#7094
Add command-line argument to hide dedupe warnings#7094kaiyoma wants to merge 1 commit intoyarnpkg:masterfrom kaiyoma:no-dedupe-warnings
Conversation
That status hasn't changed for a few days now. Is this expected? |
|
Note that |
|
@arcanis Ah! I didn't realize that |
|
No longer needed as |
Yep. We also advise you to add |
Summary
yarn's "could be deduped from" warnings are unhelpful, noisy, and annoying. There's no clear path to fixing them and the deluge of output obfuscates other issues that would normally be seen easily. This commit adds a simple command-line flag to suppress these warnings from appearing in the output and the final count.
More details and complaining here: #2287
Test plan
Before this change,
yarn checkwould result in hundreds of warnings in our project:After this change, only legitimate warnings are shown: