- update argv directly

- exit at the end
This commit is contained in:
Sandeep Somavarapu 2023-03-24 15:43:55 +01:00
parent 21ae43efae
commit 69b666cbba
No known key found for this signature in database
GPG key ID: DD41CAAC8081CC7D

View file

@ -7,13 +7,12 @@
const path = require('path');
const perf = require('@vscode/vscode-perf');
const minimist = require('minimist');
const VSCODE_FOLDER = path.join(__dirname, '..');
async function main() {
const args = [...process.argv];
const args = process.argv;
/** @type {string | undefined} */
let build = undefined;
@ -43,10 +42,13 @@ async function main() {
args.push(path.join(VSCODE_FOLDER, 'package.json'));
}
await perf.run(build ? {
...minimist(args),
build
} : undefined);
if (build) {
args.push('--build');
args.push(build);
}
await perf.run();
process.exit(0);
}
/**