diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js index 6df0b4ecb23..ea2d2d9a2dc 100644 --- a/build/npm/postinstall.js +++ b/build/npm/postinstall.js @@ -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 \ No newline at end of file +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); +} \ No newline at end of file diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index 503edf05fae..8f094f3baa0 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -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" ] } \ No newline at end of file