Merge pull request #20109 from Microsoft/dev/billti/fixMinifiedLibraries

Moved minified file exclusion
This commit is contained in:
Bill Ticehurst
2017-11-17 13:08:42 -08:00
committed by GitHub
2 changed files with 12 additions and 7 deletions
+9 -4
View File
@@ -156,9 +156,8 @@ namespace ts.server {
"exclude": [["^", 1, "/.*"]], // Exclude that whole folder if the file indicated above is found in it
"types": ["office"] // @types package to fetch instead
},
"Minified files": {
// e.g. /whatever/blah.min.js
"match": /^(.+\.min\.js)$/i,
"References": {
"match": /^(.*\/_references\.js)$/i,
"exclude": [["^", 1, "$"]]
}
};
@@ -1881,7 +1880,13 @@ namespace ts.server {
}
}
if (!exclude) {
filesToKeep.push(proj.rootFiles[i]);
// Exclude any minified files that get this far
if (/^.+[\.-]min\.js$/.test(normalizedNames[i])) {
excludedFiles.push(normalizedNames[i]);
}
else {
filesToKeep.push(proj.rootFiles[i]);
}
}
}
}
+3 -3
View File
@@ -10,7 +10,7 @@
"types": ["winjs"]
},
"Kendo": {
"match": "^(.*\\/kendo)\\/kendo\\.all\\.min\\.js$",
"match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$",
"exclude": [["^", 1, "/.*"]],
"types": ["kendo-ui"]
},
@@ -19,8 +19,8 @@
"exclude": [["^", 1, "/.*"]],
"types": ["office"]
},
"Minified files": {
"match": "^(.+\\.min\\.js)$",
"References": {
"match": "^(.*\\/_references\\.js)$",
"exclude": [["^", 1, "$"]]
}
},