Skip to content

Commit f781bd9

Browse files
KuShdanielbayley
andauthored
feat: add saveExact property to pnpm-workspace.yaml schema (SchemaStore#4820)
Co-authored-by: danielbayley <[email protected]>
1 parent 013a2a9 commit f781bd9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/schemas/json/pnpm-workspace.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,10 @@
761761
"shellEmulator": {
762762
"description": "When true, pnpm will use a JavaScript implementation of a bash-like shell to execute scripts.",
763763
"type": "boolean"
764+
},
765+
"saveExact": {
766+
"description": "Saved dependencies will be configured with an exact version rather than using pnpm's default semver range operator.",
767+
"type": "boolean"
764768
}
765769
},
766770
"additionalProperties": false

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ catalogs:
1818
react17:
1919
react: ^17.10.0
2020
react-dom: ^17.10.0
21+
22+
# https://pnpm.io/cli/add#--save-exact--e
23+
saveExact: true

0 commit comments

Comments
 (0)