ds300 / patch-package

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

feat: add preliminary support for Bun #490

Open Strengthless opened 1 year ago

Strengthless commented 1 year ago

Closes #489.

Changelogs:

Caveats:

Temporary workaround (while this PR is unmerged):

OnurGvnc commented 1 year ago

I tried bun remove <package-name> and saw that it executes the postinstall script.

❯ bun remove zod
bun remove v1.0.0 (822a00c4)
patch-package 8.0.0
Applying patches...
@remix-run/dev@1.19.3 ✔
@remix-run/react@1.19.3 ✔
 - zod

 1 packages removed [38.00ms]
Strengthless commented 1 year ago

This PR is now ready to merge, with only two caveats as mentioned in https://github.com/ds300/patch-package/pull/490#issue-1889202083.

@ds300 Can you please review this PR? :)

robertherber commented 1 year ago

Looking forward to this :) Been using pnpm for a while and been missing patch-package - so having it work with bun will be yummy!

Hoping this will work in monorepos as well!

lovlyx commented 10 months ago

any news on this?

rikur commented 10 months ago

Wish I could use patch-package to patch patch-package with this patch 😂 I guess I just need to fork the repo.

robertherber commented 9 months ago

Until this is merged, would you consider publishing this fork on npm @Strengthless?

erickreutz commented 9 months ago

LGTM!

medv commented 9 months ago

It's happening!

Using this method for now https://github.com/oven-sh/bun/issues/2336#issuecomment-1928032858

robertherber commented 8 months ago

@ds300 I understand you probably have lots going on - but having this merged would be a key enabler! 🙏🙂

miblanchard commented 8 months ago

Until this is merged, would you consider publishing this fork on npm @Strengthless?

@robertherber I am trying to use this method right now and published it under @miblanchard/patch-package@8.0.12 until this is merged and published.