/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/lib/delete-msbuild-from-path.js
22 строки
512 B
Rafael Oleza
Reformat all JS files using prettier
31 май 2019, 19:33
31 май 2019, 19:33
7f3f040
Код
Авторство
О чём код?
'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(';'); };