Skip to content

Commit 909b3cd

Browse files
Davidoniumbtea
andauthored
change syncInjectedDepsAfterScripts to be an array of strings instead of a boolean, like is documented in https://pnpm.io/settings#syncinjecteddepsafterscripts (SchemaStore#4681)
Co-authored-by: btea <[email protected]>
1 parent e6fb332 commit 909b3cd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/schemas/json/pnpm-workspace.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@
589589
},
590590
"syncInjectedDepsAfterScripts": {
591591
"description": "Injected workspace dependencies are collections of hardlinks, which don't add or remove the files when their sources change.",
592-
"type": "boolean"
592+
"type": "array",
593+
"uniqueItems": true,
594+
"items": {
595+
"type": "string"
596+
}
593597
},
594598
"preferWorkspacePackages": {
595599
"description": "If this is enabled, local packages from the workspace are preferred over packages from the registry, even if there is a newer version of the package in the registry.",

src/test/pnpm-workspace/pnpm-workspace.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ packages:
66
catalog:
77
chalk: ^4.1.2
88

9+
# https://pnpm.io/settings#syncinjecteddepsafterscripts
10+
syncInjectedDepsAfterScripts:
11+
- build
12+
913
# https://pnpm.io/catalogs
1014
catalogs:
1115
react16:

0 commit comments

Comments
 (0)