Skip to content

Commit

Permalink
Support VS IntPreview in yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jul 30, 2024
1 parent 25dd3cf commit 51a8100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/npm/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ function hasSupportedVisualStudioVersion() {
const programFiles86Path = process.env['ProgramFiles(x86)'];
const programFiles64Path = process.env['ProgramFiles'];

const vsTypes = ['Enterprise', 'Professional', 'Community', 'Preview', 'BuildTools', 'IntPreview'];
if (programFiles64Path) {
vsPath = `${programFiles64Path}/Microsoft Visual Studio/${version}`;
const vsTypes = ['Enterprise', 'Professional', 'Community', 'Preview', 'BuildTools'];
if (vsTypes.some(vsType => fs.existsSync(path.join(vsPath, vsType)))) {
availableVersions.push(version);
break;
Expand All @@ -84,7 +84,6 @@ function hasSupportedVisualStudioVersion() {

if (programFiles86Path) {
vsPath = `${programFiles86Path}/Microsoft Visual Studio/${version}`;
const vsTypes = ['Enterprise', 'Professional', 'Community', 'Preview', 'BuildTools'];
if (vsTypes.some(vsType => fs.existsSync(path.join(vsPath, vsType)))) {
availableVersions.push(version);
break;
Expand Down

0 comments on commit 51a8100

Please sign in to comment.