aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-07-06 15:33:42 -0700
committerGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-07-06 15:33:49 -0700
commita415f482db09ae50474dd8b6258c4e5166e63670 (patch)
treeb205ad1d15e7897a2448fd92a9dd4cba148e072e
parent954b6fcaf39c2346762ff40e9cf25705fcbd7ffb (diff)
downloadbun-a415f482db09ae50474dd8b6258c4e5166e63670.tar.gz
bun-a415f482db09ae50474dd8b6258c4e5166e63670.tar.zst
bun-a415f482db09ae50474dd8b6258c4e5166e63670.zip
Update trustedDeps doc
-rw-r--r--docs/cli/install.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/cli/install.md b/docs/cli/install.md
index f7b081ba8..c805b14f6 100644
--- a/docs/cli/install.md
+++ b/docs/cli/install.md
@@ -244,8 +244,18 @@ To tell Bun to allow lifecycle scripts for a particular package, add the package
}
```
-Bun reads this field and will run lifecycle scripts for `my-trusted-package`. If you specify a version range, Bun will only execute lifecycle scripts if the resolved package version matches the range.
+```json-diff
+ {
+ "name": "my-app",
+ "version": "1.0.0",
++ "trustedDependencies": ["my-trusted-package"]
+ }
+```
+Bun reads this field and will run lifecycle scripts for `my-trusted-package`.
+
+<!-- If you specify a version range, Bun will only execute lifecycle scripts if the resolved package version matches the range. -->
+<!--
```json
{
"name": "my-app",
@@ -254,7 +264,7 @@ Bun reads this field and will run lifecycle scripts for `my-trusted-package`. If
"my-trusted-package": "^1.0.0"
}
}
-```
+``` -->
## Git dependencies