fix: `ProfilingPlugin` schema

This commit is contained in:
evilebottnawi 2019-08-07 21:18:03 +03:00
parent 3a7bd7ffb4
commit 1952d5c882
4 changed files with 5 additions and 4 deletions

View File

@ -8,5 +8,5 @@ export interface WatchIgnorePluginOptions {
/**
* A list of RegExps or absolute paths to directories or files that should be ignored
*/
paths?: [(string | RegExp), ...(string | RegExp)[]];
paths: [(string | RegExp), ...(string | RegExp)[]];
}

View File

@ -6,7 +6,7 @@
export interface ProfilingPluginOptions {
/**
* Path to the output file e.g. `profiling/events.json`. Defaults to `events.json`.
* Path to the output file e.g. `path.resolve(__dirname, 'profiling/events.json')`. Defaults to `events.json`.
*/
outputPath?: string;
}

View File

@ -20,5 +20,6 @@
},
"minItems": 1
}
}
},
"required": ["paths"]
}

View File

@ -4,7 +4,7 @@
"additionalProperties": false,
"properties": {
"outputPath": {
"description": "Path to the output file e.g. `profiling/events.json`. Defaults to `events.json`.",
"description": "Path to the output file e.g. `path.resolve(__dirname, 'profiling/events.json')`. Defaults to `events.json`.",
"type": "string",
"absolutePath": true
}