mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
23 lines
512 B
JavaScript
23 lines
512 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
module.exports = function() {
|
|
process.env['PATH'] = process.env['PATH']
|
|
.split(';')
|
|
.filter(function(p) {
|
|
if (fs.existsSync(path.join(p, 'msbuild.exe'))) {
|
|
console.log(
|
|
'Excluding "' +
|
|
p +
|
|
'" from PATH to avoid msbuild.exe mismatch that causes errors during module installation'
|
|
);
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
})
|
|
.join(';');
|
|
};
|