aboutsummaryrefslogtreecommitdiff
path: root/docs/cli/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cli/install.md')
-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