mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Merge pull request #20109 from Microsoft/dev/billti/fixMinifiedLibraries
Moved minified file exclusion
This commit is contained in:
commit
3d5712dee9
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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, "$"]]
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user