You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config-dependencies.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
id: config-dependencies
3
-
title: Configurational dependencies
3
+
title: Config dependencies
4
4
---
5
5
6
-
Configurational dependencies are installed before all the other types of dependencies (before "dependencies", "devDependencies", "optionalDependencies").
6
+
Config dependencies are installed before all the other types of dependencies (before "dependencies", "devDependencies", "optionalDependencies").
7
7
8
-
Configurational dependencies cannot have dependencies of their own or lifecycle scripts. They should be added using exact version and the integrity checksum. Example:
8
+
Config dependencies cannot have dependencies of their own or lifecycle scripts. They should be added using exact version and the integrity checksum. Example:
9
9
10
10
```yaml title="pnpm-workspace.yaml"
11
11
configDependencies:
@@ -16,7 +16,7 @@ configDependencies:
16
16
17
17
### Loading an allow list of built dependencies
18
18
19
-
You may load a list of package names that are allowed to be built via configurational dependencies and the [`onlyBuiltDependenciesFile`] setting. For example, you may publish a package with an `allow.json` file in its root directory:
19
+
You may load a list of package names that are allowed to be built via config dependencies and the [`onlyBuiltDependenciesFile`] setting. For example, you may publish a package with an `allow.json` file in its root directory:
20
20
21
21
```json
22
22
[
@@ -39,9 +39,9 @@ This way your project will load the list of packages that are allowed to be buil
39
39
40
40
### Installing dependencies used in hooks
41
41
42
-
Configurational dependencies are installed before the hooks from [`.pnpmfile.cjs`] are loaded, so you can use them as dependencies for your hooks.
42
+
Config dependencies are installed before the hooks from [`.pnpmfile.cjs`] are loaded, so you can use them as dependencies for your hooks.
43
43
44
-
For instance, you may have a configurational dependency called "my-hooks" that exports a `readPackage` hook. In this case, you can import it into your `.pnpmfile.cjs` like this:
44
+
For instance, you may have a config dependency called "my-hooks" that exports a `readPackage` hook. In this case, you can import it into your `.pnpmfile.cjs` like this:
@@ -104,7 +104,7 @@ This makes it easy to maintain and share centralized configuration and dependenc
104
104
105
105
### Loading patches
106
106
107
-
You can reference [patch files] installed via configurational dependencies. For instance, if you have a configurational dependency called "my-patches", you can load patches from it:
107
+
You can reference [patch files] installed via config dependencies. For instance, if you have a config dependency called "my-patches", you can load patches from it:
0 commit comments