1

I'm currently building a monorepo with yarn berry. So i've had to make a lot of many package.json to control the each of workspaces. But i noticed there are too many the same dependencies in the each workspace, and if i want to update one of dependencies, i have to update many times unnecessarily.

So this is /package.json on the root level:

enter image description here

and this is /packages/button/packages.json:

enter image description here

As you can see, there are some of the same dependencies, so i'd like to share or extend the root one ( or other package.json )

Is there any way to do this? If you help me out, it'd be a huge help :)

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
YO Y
  • 111
  • 7

0 Answers0