Take typings from tsconfig.monaco.json

This commit is contained in:
Alexandru Dima
2019-11-13 09:59:15 +01:00
parent 711ed6c850
commit f6b6a97807
3 changed files with 5 additions and 8 deletions

View File

@@ -52,6 +52,9 @@ export function extractEditor(options: tss.ITreeShakingOptions & { destRoot: str
console.log(`Running with shakeLevel ${tss.toStringShakeLevel(options.shakeLevel)}`);
// Take the extra included .d.ts files from `tsconfig.monaco.json`
options.typings = (<string[]>tsConfig.include).filter(includedFile => /\.d\.ts$/.test(includedFile));
let result = tss.shake(options);
for (let fileName in result) {
if (result.hasOwnProperty(fileName)) {