Remove windows-process-tree types if they get installed

These typings cause duplicate identifier errors on windows tsc builds
This commit is contained in:
Matt Bierner
2018-11-08 17:49:45 -08:00
parent e74aa5aa2e
commit cf4e17cd4b
2 changed files with 9 additions and 3 deletions
+8 -1
View File
@@ -60,4 +60,11 @@ runtime "${runtime}"`;
yarnInstall(`build`); // node modules required for build
yarnInstall('test/smoke'); // node modules required for smoketest
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron
// Remove the windows process tree typings as this causes duplicate identifier errors in tsc builds
const processTreeDts = path.join('node_modules', 'windows-process-tree', 'typings', 'windows-process-tree.d.ts');
if (fs.existsSync(processTreeDts)) {
console.log('Removing windows-process-tree.d.ts');
fs.unlinkSync(processTreeDts);
}
+1 -2
View File
@@ -701,7 +701,6 @@
"./vs/code/electron-browser/processExplorer/processExplorerMain.ts"
],
"exclude": [
"./typings/require-monaco.d.ts",
"./typings/windows-process-tree.d.ts"
"./typings/require-monaco.d.ts"
]
}