Skip to content

Commit 698bf6a

Browse files
Ahamed1846msaf9ivanbalutaznarfm
authored
bun-patch: add page (#19507)
Co-authored-by: Sahil Afrid Farookhi <[email protected]> Co-authored-by: Ivan Baluta <[email protected]> Co-authored-by: Meinard Francisco <[email protected]>
1 parent a112a41 commit 698bf6a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/common/bun-patch.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# bun patch
2+
3+
> Prepare a package for patching or generate a patch file.
4+
> More information: <https://bun.com/docs/pm/cli/patch>.
5+
6+
- Prepare a package for patching:
7+
8+
`bun patch {{package}}`
9+
10+
- Prepare a specific version of a package:
11+
12+
`bun patch {{package}}@{{version}}`
13+
14+
- Prepare a package located at a specific path:
15+
16+
`bun patch {{path/to/package}}`
17+
18+
- Generate a patch file for changes made to a package:
19+
20+
`bun patch --commit {{path/to/package}}`
21+
22+
- Generate a patch file and store it in a custom directory:
23+
24+
`bun patch --commit {{path/to/package}} --patches-dir {{path/to/directory}}`

0 commit comments

Comments
 (0)