summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-08-20 07:55:47 -0700
committerGitHub <noreply@github.com>2024-08-20 14:55:47 +0000
commit5168700be669179382462214724115a3013cb58e (patch)
treef30a134722a079b4cc7b2c25a799fe11bf40c6cd /cli/schemas
parentf1c58ec041a05276d9f33562a5843c0bb7fb95b3 (diff)
feat(config): Support frozen lockfile config option in deno.json (#25100)
Closes #24544
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index adfe3b0c2..733a9cab6 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -552,8 +552,20 @@
},
"lock": {
"description": "Whether to use a lock file or the path to use for the lock file. Can be overridden by CLI arguments.",
- "type": ["string", "boolean"],
- "default": true
+ "type": ["string", "boolean", "object"],
+ "default": true,
+ "properties": {
+ "path": {
+ "type": "string",
+ "description": "The path to use for the lock file.",
+ "default": "deno.lock"
+ },
+ "frozen": {
+ "type": "boolean",
+ "description": "Whether to exit with an error if lock file is out of date.",
+ "default": false
+ }
+ }
},
"unstable": {
"type": "array",