Skip to content

Commit 346e1dd

Browse files
bun-why: add page (#19508)
* bun-why: add page Signed-off-by: Emmanuel Ferdman <[email protected]> * Update bun-why.md --------- Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent cb7e412 commit 346e1dd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/common/bun-why.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# bun why
2+
3+
> Explain why a package is installed by showing its dependency chain.
4+
> More information: <https://bun.com/docs/pm/cli/why>.
5+
6+
- Explain why a specific package is installed:
7+
8+
`bun why {{package_name}}`
9+
10+
- Explain why all packages matching a pattern are installed:
11+
12+
`bun why "{{pattern}}"`
13+
14+
- Explain why packages from a specific organization are installed:
15+
16+
`bun why "@{{organization}}/*"`
17+
18+
- Show only top-level dependencies:
19+
20+
`bun why {{package_name}} --top`
21+
22+
- Limit the dependency tree depth:
23+
24+
`bun why {{package_name}} --depth {{number}}`

0 commit comments

Comments
 (0)