patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Add support for npm workspaces

Open bcomnes opened this issue 1 year ago • 0 comments

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.

bcomnes avatar Jun 20 '24 21:06 bcomnes