yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.23k stars 1.07k forks source link

[Feature] `yarn why` for individual workspace #6295

Open BasixKOR opened 1 month ago

BasixKOR commented 1 month ago

Describe the user story

SCR-20240514-nosz

We have a huge monorepo consisting of a lot of workspaces, and yarn why result is often too long to be used quickly & easily, especially if the multiple version of same package is used throughout the project.

Describe the solution you'd like

Describe the drawbacks of your solution

I don't see a particular drawbacks, except option A may cause breaking changes.

Describe alternatives you've considered

Making this into a plugin is certainly possible, but I think looking into specific workspace's dependencies is general enough to be added into Yarn itself.