summaryrefslogtreecommitdiff
path: root/cli/schemas/config-file.v1.json
diff options
context:
space:
mode:
Diffstat (limited to 'cli/schemas/config-file.v1.json')
-rw-r--r--cli/schemas/config-file.v1.json23
1 files changed, 21 insertions, 2 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index 9f4737fa0..56a8090f9 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -431,8 +431,27 @@
"type": "object",
"patternProperties": {
"^[A-Za-z][A-Za-z0-9_\\-:]*$": {
- "type": "string",
- "description": "Command to execute for this task name."
+ "oneOf": [
+ {
+ "type": "string",
+ "description": "Command to execute for this task name."
+ },
+ {
+ "type": "object",
+ "description": "A definition of a task to execute",
+ "properties": {
+ "description": {
+ "type": "string",
+ "description": "Description of a task that will be shown when running `deno task` without a task name"
+ },
+ "command": {
+ "type": "string",
+ "required": true,
+ "description": "The task to execute"
+ }
+ }
+ }
+ ]
}
},
"additionalProperties": false