Skip to content

Commit 69b666c

Browse files
committed
- update argv directly
- exit at the end
1 parent 21ae43e commit 69b666c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/code-perf.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
const path = require('path');
99
const perf = require('@vscode/vscode-perf');
10-
const minimist = require('minimist');
1110

1211
const VSCODE_FOLDER = path.join(__dirname, '..');
1312

1413
async function main() {
1514

16-
const args = [...process.argv];
15+
const args = process.argv;
1716
/** @type {string | undefined} */
1817
let build = undefined;
1918

@@ -43,10 +42,13 @@ async function main() {
4342
args.push(path.join(VSCODE_FOLDER, 'package.json'));
4443
}
4544

46-
await perf.run(build ? {
47-
...minimist(args),
48-
build
49-
} : undefined);
45+
if (build) {
46+
args.push('--build');
47+
args.push(build);
48+
}
49+
50+
await perf.run();
51+
process.exit(0);
5052
}
5153

5254
/**

0 commit comments

Comments
 (0)