snippetbashTip
bun patch — Prepare a package for patching or generate a patch file. More information: <https://bun.com/docs/pm/
Viewed 0 times
patchingpreparecommandclibun patchpackageforgenerate
Problem
How to use the
bun patch command: Prepare a package for patching or generate a patch file. More information: <https://bun.com/docs/pm/cli/patch>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/bun patch
Revisions (0)
No revisions yet.