Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix yarn perf #178236

Merged
merged 1 commit into from Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions scripts/code-perf.js
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}

/**
Expand Down