summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <geertjanzwiers@protonmail.com>2022-12-10 02:30:47 +0100
committerGitHub <noreply@github.com>2022-12-10 02:30:47 +0100
commit890b0653104388bfef60ca7ebd0af758caf5f0be (patch)
tree8e31ad81f180c34dfd07088a790567ab72527b43 /cli/schemas
parent4eb8e875fd6fc91ff1dbc34b7bc8750fff728a32 (diff)
feat(cli): support deno bench in the config file (#16608)
This PR adds the ability to set `include/exclude` fields for `deno bench` in the configuration file.
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index 7f6dcb4e3..67650309e 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -356,6 +356,31 @@
}
}
},
+ "bench": {
+ "description": "Configuration for deno bench",
+ "type": "object",
+ "properties": {
+ "files": {
+ "type": "object",
+ "properties": {
+ "include": {
+ "type": "array",
+ "description": "List of files or directories that will be searched for benchmarks.",
+ "items": {
+ "type": "string"
+ }
+ },
+ "exclude": {
+ "type": "array",
+ "description": "List of files or directories that will not be searched for benchmarks.",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
"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"],