bun-pm-{cache, trust, untrusted}: add pages and example (#21208)

This commit is contained in:
Sahil Afrid Farookhi
2026-02-22 20:31:24 -06:00
committed by GitHub
parent e8b8f450f9
commit 9f7bd3ec73
3 changed files with 27 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
# bun pm cache
> Manage Bun's cache.
> More information: <https://bun.com/docs/pm/cli/pm#cache>.
- Display the path to the global module cache:
`bun pm cache`
- Clear the global module cache:
`bun pm cache rm`
+13
View File
@@ -0,0 +1,13 @@
# bun pm trust
> Mark dependencies as trusted.
> See also: `bun pm untrusted`.
> More information: <https://bun.com/docs/pm/cli/pm#trust>.
- Trust a specific dependency and add it to `trustedDependencies`:
`bun pm trust {{dependency_name}}`
- Trust all currently untrusted dependencies:
`bun pm trust --all`
+2 -2
View File
@@ -24,9 +24,9 @@
`bun pm hash`
- Print the path to Bun's global module cache:
- List the current untrusted dependencies that contain scripts:
`bun pm cache`
`bun pm untrusted`
- Migrate another package manager's lockfile without installing anything: