Skip to content

Commit cf4e17c

Browse files
committed
Remove windows-process-tree types if they get installed
These typings cause duplicate identifier errors on windows tsc builds
1 parent e74aa5a commit cf4e17c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

build/npm/postinstall.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,11 @@ runtime "${runtime}"`;
6060

6161
yarnInstall(`build`); // node modules required for build
6262
yarnInstall('test/smoke'); // node modules required for smoketest
63-
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron
63+
yarnInstallBuildDependencies(); // node modules for watching, specific to host node version, not electron
64+
65+
// Remove the windows process tree typings as this causes duplicate identifier errors in tsc builds
66+
const processTreeDts = path.join('node_modules', 'windows-process-tree', 'typings', 'windows-process-tree.d.ts');
67+
if (fs.existsSync(processTreeDts)) {
68+
console.log('Removing windows-process-tree.d.ts');
69+
fs.unlinkSync(processTreeDts);
70+
}

src/tsconfig.strictNullChecks.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,6 @@
701701
"./vs/code/electron-browser/processExplorer/processExplorerMain.ts"
702702
],
703703
"exclude": [
704-
"./typings/require-monaco.d.ts",
705-
"./typings/windows-process-tree.d.ts"
704+
"./typings/require-monaco.d.ts"
706705
]
707706
}

0 commit comments

Comments
 (0)