ds300 / patch-package

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

Add support for yarn v2+ #496

Open jagamypriera opened 8 months ago

jagamypriera commented 8 months ago

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+.

JounQin commented 8 months ago

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

noahm commented 8 months ago

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.

JounQin commented 6 months ago

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?

noahm commented 6 months ago

@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!

JounQin commented 6 months ago

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

JounQin commented 6 months ago

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