berry icon indicating copy to clipboard operation
berry copied to clipboard

[Feature] Better support for `resolutions` inside workspaces

Open trusktr opened this issue 2 years ago • 2 comments

  • [ ] 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. A plugin would be fine

Describe the user story

I tried to place resolutions inside a workspace rather than at the top level of a monorepo, and it seems to be totally ignored.

Describe the solution you'd like

It would be very useful for it to work within the specific workspace.

Describe the drawbacks of your solution

Describe alternatives you've considered

Similar issue as this:

https://stackoverflow.com/questions/54120149/within-a-yarn-workspace-how-can-i-force-a-resolution-for-a-child-projects-depe

trusktr avatar Nov 07 '23 06:11 trusktr

The reason for this feature request is because I was hoping to solve

  • https://github.com/yarnpkg/berry/issues/5948

trusktr avatar Nov 07 '23 06:11 trusktr

My workaround was to... stop using workspaces and make separate packages (each with their yarn.lock file) and use portal: links between them.

Another workaround is described in this other issue: https://github.com/yarnpkg/berry/issues/5024

simlmx avatar Feb 05 '24 15:02 simlmx