exclude node_modules unless explicitly included

This commit is contained in:
Ron Buckton
2017-08-03 18:30:09 -07:00
parent 1552761982
commit b747c2dd96
6 changed files with 200 additions and 106 deletions

View File

@@ -1446,14 +1446,10 @@ namespace ts {
}
}
else {
// If no includes were specified, exclude common package folders and the outDir
const specs = includeSpecs ? [] : ["node_modules", "bower_components", "jspm_packages"];
const outDir = raw["compilerOptions"] && raw["compilerOptions"]["outDir"];
if (outDir) {
specs.push(outDir);
excludeSpecs = [outDir];
}
excludeSpecs = specs;
}
if (fileNames === undefined && includeSpecs === undefined) {