Merge pull request #8484 from zhengbli/ignoreHiddenFiles

ignore dotted files and folders
This commit is contained in:
Zhengbo Li
2016-05-05 19:22:10 -07:00
2 changed files with 44 additions and 4 deletions

View File

@@ -652,6 +652,9 @@ namespace ts {
return output;
}
// Skip over any minified JavaScript files (ending in ".min.js")
// Skip over dotted files and folders as well
const IgnoreFileNamePattern = /(\.min\.js$)|([\\/]\.[\w.])/;
/**
* Parse the contents of a config file (tsconfig.json).
* @param json The contents of the config file to parse
@@ -715,8 +718,7 @@ namespace ts {
continue;
}
// Skip over any minified JavaScript files (ending in ".min.js")
if (/\.min\.js$/.test(fileName)) {
if (IgnoreFileNamePattern.test(fileName)) {
continue;
}