Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/negative_test/pnpm-workspace/frozen-lockfile-type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# yaml-language-server: $schema=../../schemas/json/pnpm-workspace.json
frozenLockfile: 'true'
4 changes: 4 additions & 0 deletions src/schemas/json/pnpm-workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@
"description": "When set to false, pnpm won't read or generate a pnpm-lock.yaml file.",
"type": "boolean"
},
"frozenLockfile": {
"description": "When true, installation fails if the lockfile is missing or needs to be updated.",
"type": "boolean"
},
"preferFrozenLockfile": {
"description": "When set to true and the available pnpm-lock.yaml satisfies the package.json dependencies directive, a headless installation is performed.",
"type": "boolean"
Expand Down
3 changes: 3 additions & 0 deletions src/test/pnpm-workspace/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ saveExact: true
# https://pnpm.io/settings/other#savetypes
saveTypes: true

# https://pnpm.io/cli/install#--frozen-lockfile
frozenLockfile: true

# https://pnpm.io/cli/install#--prefer-offline
preferOffline: true

Expand Down
3 changes: 3 additions & 0 deletions src/test/pnpm-workspace/pnpm-workspace2.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=../../schemas/json/pnpm-workspace.json
# https://pnpm.io/catalogs
catalog: null

# https://pnpm.io/cli/install#--frozen-lockfile
frozenLockfile: false
Loading