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

Add support for yarn v2+

Open jagamypriera opened this issue 2 years ago • 6 comments

While yarn v2 has a built-in patch feature, but it involves a lengthy process. To be honest, patch-package is much easier and more convenient to use. Please consider supporting Yarn v2+.

jagamypriera avatar Oct 19 '23 08:10 jagamypriera

+1 for this, the patch experience of yarn 2+ is bad as pnpm, I love patch-package's solution.

JounQin avatar Oct 20 '23 13:10 JounQin

I agree, patch-package has a much better UX and I prefer using it over yarn's native patches by far. To that end, I already have mostly working support for yarn 2+ in a fork and I hope to eventually get it into shape for a PR here.

noahm avatar Nov 09 '23 22:11 noahm

I already have mostly working support for yarn 2+ in a fork and I hope to eventually get it into shape for a PR here.

@noahm Would you like to share it? Or just raise it as a PR?

JounQin avatar Dec 19 '23 07:12 JounQin

@JounQin Thanks for reminding me! I just opened #506 with my changes. I wouldn't personally consider it ready to merge until new integration tests were added with more recent yarn versions, but I don't have time to keep working on it for a while. If anybody else wants to help along those lines, it would be appreciated!

noahm avatar Dec 20 '23 22:12 noahm

I raised a new PR #507 to fix all my known issues.

JounQin avatar Dec 21 '23 13:12 JounQin

I've just publish my PR #507 as @unts/patch-package, you can give it a try.

JounQin avatar Jan 06 '24 18:01 JounQin