diff --git a/docs/cli/install.md b/docs/cli/install.md index f7b081ba86..c805b14f6a 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`. + + + ## Git dependencies