From 346e1dd41ea12e6591c05aa2c1132388a5cb61a3 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Wed, 19 Nov 2025 02:50:20 +0200 Subject: [PATCH] bun-why: add page (#19508) * bun-why: add page Signed-off-by: Emmanuel Ferdman * Update bun-why.md --------- Signed-off-by: Emmanuel Ferdman --- pages/common/bun-why.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/bun-why.md diff --git a/pages/common/bun-why.md b/pages/common/bun-why.md new file mode 100644 index 0000000000..b7993164f9 --- /dev/null +++ b/pages/common/bun-why.md @@ -0,0 +1,24 @@ +# bun why + +> Explain why a package is installed by showing its dependency chain. +> More information: . + +- 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}}`