Skip to content
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

[Feature] yarn why for individual workspace #6295

Open
2 tasks done
BasixKOR opened this issue May 14, 2024 · 0 comments
Open
2 tasks done

[Feature] yarn why for individual workspace #6295

BasixKOR opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@BasixKOR
Copy link
Contributor

BasixKOR commented May 14, 2024

  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

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

  • Option A: Change yarn why behavior to only look for current workspace's recursive dependencies.
    • Breaking change!
  • Option B: Add a flag to opt into the behavior specified in A.

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.

@BasixKOR BasixKOR added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant