ds300 / patch-package

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

Add support for npm workspaces #526

Open bcomnes opened 5 months ago

bcomnes commented 5 months 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.