From a415f482db09ae50474dd8b6258c4e5166e63670 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Thu, 6 Jul 2023 15:33:42 -0700 Subject: Update trustedDeps doc --- docs/cli/install.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'docs/cli/install.md') 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`. + + + ## Git dependencies -- cgit v1.2.3