From 890b0653104388bfef60ca7ebd0af758caf5f0be Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Sat, 10 Dec 2022 02:30:47 +0100 Subject: 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. --- cli/schemas/config-file.v1.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'cli/schemas') 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"], -- cgit v1.2.3