We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ae43e commit 69b666cCopy full SHA for 69b666c
scripts/code-perf.js
@@ -7,13 +7,12 @@
7
8
const path = require('path');
9
const perf = require('@vscode/vscode-perf');
10
-const minimist = require('minimist');
11
12
const VSCODE_FOLDER = path.join(__dirname, '..');
13
14
async function main() {
15
16
- const args = [...process.argv];
+ const args = process.argv;
17
/** @type {string | undefined} */
18
let build = undefined;
19
@@ -43,10 +42,13 @@ async function main() {
43
42
args.push(path.join(VSCODE_FOLDER, 'package.json'));
44
}
45
46
- await perf.run(build ? {
47
- ...minimist(args),
48
- build
49
- } : undefined);
+ if (build) {
+ args.push('--build');
+ args.push(build);
+ }
+
50
+ await perf.run();
51
+ process.exit(0);
52
53
54
/**
0 commit comments