Skip to content

Commit 97cd2dd

Browse files
committed
Improvement: add schema for profiling plugin options, remove todo item: abs path to false
1 parent fb4b275 commit 97cd2dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/debug/ProfilingPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const fs = require("fs");
22
const Trace = require("chrome-trace-event").Tracer;
3+
const validateOptions = require("schema-utils");
4+
const schema = require("../../schemas/plugins/debug/ProfilingPlugin.json");
35
let inspector = undefined;
46

57
try {
@@ -131,8 +133,6 @@ function createTrace(outPath) {
131133
}
132134

133135
const pluginName = "ProfilingPlugin";
134-
const validateOptions = require("schema-utils");
135-
const schema = require("../../schemas/plugins/debug/ProfilingPlugin.json");
136136

137137
class ProfilingPlugin {
138138
constructor(opts) {

schemas/plugins/debug/ProfilingPlugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outPath": {
77
"description": "Path to the output file e.g. `profiling/events.json`. Defaults to `events.json`.",
88
"type": "string",
9-
"absolutePath": true,
9+
"absolutePath": false,
1010
"minLength": 4
1111
}
1212
}

0 commit comments

Comments
 (0)