Improve output in case of errors and generate an analysis folder with the source content (for easy diffing)

This commit is contained in:
Alexandru Dima
2019-11-13 11:14:45 +01:00
parent 27770ed1b5
commit b5ce6014d7
7 changed files with 112 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ function extractEditor(options) {
compilerOptions.declaration = false;
compilerOptions.moduleResolution = ts.ModuleResolutionKind.Classic;
options.compilerOptions = compilerOptions;
console.log(`Running with shakeLevel ${tss.toStringShakeLevel(options.shakeLevel)}`);
console.log(`Running tree shaker with shakeLevel ${tss.toStringShakeLevel(options.shakeLevel)}`);
// Take the extra included .d.ts files from `tsconfig.monaco.json`
options.typings = tsConfig.include.filter(includedFile => /\.d\.ts$/.test(includedFile));
let result = tss.shake(options);