From 943e9d4f12085c1d03b27ba1babdd485ae725223 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Tue, 30 Jan 2024 18:35:38 +0800 Subject: [PATCH] format can include flavor so use startsWith --- lib/configure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configure.js b/lib/configure.js index af1cb50599..25987bbb51 100644 --- a/lib/configure.js +++ b/lib/configure.js @@ -97,7 +97,7 @@ async function configure (gyp, argv) { if (gypFormatIndex === -1) { gypFormatIndex = argv.indexOf('--format') } - if (gypFormatIndex === -1 || !argv[gypFormatIndex + 1] || argv[gypFormatIndex + 1] === 'msvs') { + if (gypFormatIndex === -1 || !argv[gypFormatIndex + 1] || argv[gypFormatIndex + 1].startsWith('msvs')) { const vsInfo = await findVisualStudio(release.semver, gyp.opts['msvs-version']) return createConfigFile(vsInfo) }