New features + dependency/tooling clean-up
patch-package:
- Has many outdated or unneeded dependencies: https://github.com/ds300/patch-package/issues/499 (@SukkaW)
- Doesn't support monorepos: https://github.com/ds300/patch-package/issues/551 (@mdroidian)
- Doesn't support npm's
install-strategy=linked: https://github.com/ds300/patch-package/issues/595 (@manzoorwanijk)
It also seems like ds300 (the maintainer) isn't active enough to be merging PRs and such for these issues (no offense if you're reading this).
I'm also interested in the potential to allow people to get specific PRs before they are merged in other projects. Take for example https://github.com/colinhacks/zod/pull/5961 (a PR I recently opened). In order to patch zod for that PR right now, one has to:
- Clone the PR, Zod's main, and the release to target
- Useually tooling setup (
npm i/pnpm i) git checkoutthe release to patchgit cherry-pick main..pr-branch- build zod
- copy the files resolved through package.json's
filesand.npmignoreintonode_modules - generate the patch
I feel like this could be mostly automated, so that someone could do patch-package zod --from-pr=5961 (open to bikeshedding) to generate the patch.
I'm thinking I might fork patch-package to try and make this all a reality. I made this issue so hopefully the community can see it and if there's interest help out.
Source: ds300/patch-package