Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/config-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ configDependencies:

You can load a list of package names that are allowed to be built, using the [`onlyBuiltDependenciesFile`] setting.

Example `allow.json` file inside a config dependency ([@pnpm/trusted-deps]):
Example `allow.json` file inside a config dependency ([@pnpm/plugin-trusted-deps]):

```json title="allow.json"
[
Expand All @@ -45,11 +45,11 @@ Your workspace configuration:

```yaml title="pnpm-workspace.yaml"
configDependencies:
'@pnpm/trusted-deps': 0.1.0+sha512-IERT0uXPBnSZGsCmoSuPzYNWhXWWnKkuc9q78KzLdmDWJhnrmvc7N4qaHJmaNKIusdCH2riO3iE34Osohj6n8w==
onlyBuiltDependenciesFile: node_modules/.pnpm-config/@pnpm/trusted-deps/allow.json
'@pnpm/plugin-trusted-deps': 0.1.0+sha512-IERT0uXPBnSZGsCmoSuPzYNWhXWWnKkuc9q78KzLdmDWJhnrmvc7N4qaHJmaNKIusdCH2riO3iE34Osohj6n8w==
onlyBuiltDependenciesFile: node_modules/.pnpm-config/@pnpm/plugin-trusted-deps/allow.json
```

[@pnpm/trusted-deps]: https://github.com/pnpm/trusted-deps
[@pnpm/plugin-trusted-deps]: https://github.com/pnpm/plugin-trusted-deps
[`onlyBuiltDependenciesFile`]: settings.md#onlybuiltdependenciesfile

### Installing Dependencies Used in Hooks
Expand Down
6 changes: 3 additions & 3 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -1192,13 +1192,13 @@ Example:

```yaml
configDependencies:
'@pnpm/trusted-deps': 0.1.0+sha512-IERT0uXPBnSZGsCmoSuPzYNWhXWWnKkuc9q78KzLdmDWJhnrmvc7N4qaHJmaNKIusdCH2riO3iE34Osohj6n8w==
onlyBuiltDependenciesFile: node_modules/.pnpm-config/@pnpm/trusted-deps/allow.json
'@pnpm/plugin-trusted-deps': 0.1.0+sha512-IERT0uXPBnSZGsCmoSuPzYNWhXWWnKkuc9q78KzLdmDWJhnrmvc7N4qaHJmaNKIusdCH2riO3iE34Osohj6n8w==
onlyBuiltDependenciesFile: node_modules/.pnpm-config/@pnpm/plugin-trusted-deps/allow.json
```

The JSON file itself should contain an array of package names:

```json title="node_modules/.pnpm-config/@pnpm/trusted-deps/allow.json"
```json title="node_modules/.pnpm-config/@pnpm/plugin-trusted-deps/allow.json"
[
"@airbnb/node-memwatch",
"@apollo/protobufjs",
Expand Down