ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.17k stars 283 forks source link

Add support for npm workspaces #526

Open bcomnes opened 3 weeks ago

bcomnes commented 3 weeks ago

I noticed that patch-package didn't work in npm workspaces and came up with this patch. I can get it fixed up and tested if you are interested in landing this. It works slightly different than yarn works. You just treat the workspace like any other nested dependency from the top level. It seems to work fine, but maybe there is a justified reason for requiring patches be made IN the workspace and resolving up to the lock file the way yarn does it. Happy to accommodate if thats preferred.