Files
tldr/pages/common/bun-patch.md
T
Ahamed_Meyan 698bf6add7 bun-patch: add page (#19507)
Co-authored-by: Sahil Afrid Farookhi <msafarookhi@gmail.com>
Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
Co-authored-by: Meinard Francisco <44516102+znarfm@users.noreply.github.com>
2025-11-19 21:05:03 +07:00

589 B

bun patch

Prepare a package for patching or generate a patch file. More information: https://bun.com/docs/pm/cli/patch.

  • Prepare a package for patching:

bun patch {{package}}

  • Prepare a specific version of a package:

bun patch {{package}}@{{version}}

  • Prepare a package located at a specific path:

bun patch {{path/to/package}}

  • Generate a patch file for changes made to a package:

bun patch --commit {{path/to/package}}

  • Generate a patch file and store it in a custom directory:

bun patch --commit {{path/to/package}} --patches-dir {{path/to/directory}}