bun-why: add page (#19508)

* bun-why: add page

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Update bun-why.md

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2025-11-18 18:50:20 -06:00
committed by GitHub
parent cb7e41203b
commit 346e1dd41e
+24
View File
@@ -0,0 +1,24 @@
# bun why
> Explain why a package is installed by showing its dependency chain.
> More information: <https://bun.com/docs/pm/cli/why>.
- Explain why a specific package is installed:
`bun why {{package_name}}`
- Explain why all packages matching a pattern are installed:
`bun why "{{pattern}}"`
- Explain why packages from a specific organization are installed:
`bun why "@{{organization}}/*"`
- Show only top-level dependencies:
`bun why {{package_name}} --top`
- Limit the dependency tree depth:
`bun why {{package_name}} --depth {{number}}`