From 69b666cbba77a04f33d7018f00a13234dfe2f0d7 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Fri, 24 Mar 2023 15:43:55 +0100 Subject: [PATCH] - update argv directly - exit at the end --- scripts/code-perf.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/code-perf.js b/scripts/code-perf.js index d4bfd72c2b4..4bc431479f3 100644 --- a/scripts/code-perf.js +++ b/scripts/code-perf.js @@ -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); } /**