File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1108,6 +1108,10 @@ private boolean hasTypeScriptFiles(Set<Path> filesToExtract) {
1108
1108
return false ;
1109
1109
}
1110
1110
1111
+ public static boolean treatAsTSConfig (String basename ) {
1112
+ return basename .contains ("tsconfig." ) && basename .endsWith (".json" );
1113
+ }
1114
+
1111
1115
private void findFilesToExtract (
1112
1116
FileExtractor extractor , final Set <Path > filesToExtract , final List <Path > tsconfigFiles )
1113
1117
throws IOException {
@@ -1140,7 +1144,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
1140
1144
1141
1145
// extract TypeScript projects from 'tsconfig.json'
1142
1146
if (typeScriptMode == TypeScriptMode .FULL
1143
- && (file .getFileName ().toString (). contains ( "tsconfig." ) && file . getFileName (). toString (). endsWith ( ".json" ))
1147
+ && treatAsTSConfig (file .getFileName ().toString ())
1144
1148
&& !excludes .contains (file )
1145
1149
&& isFileIncluded (file )) {
1146
1150
tsconfigFiles .add (file );
Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ private void collectFiles(File root, boolean explicit) {
539
539
}
540
540
541
541
if (extractorConfig .getTypeScriptMode () == TypeScriptMode .FULL
542
- && root .getName (). equals ( "tsconfig.json" )
542
+ && AutoBuild . treatAsTSConfig ( root .getName ())
543
543
&& !excludeMatcher .matches (path )) {
544
544
projectFiles .add (root );
545
545
}
You can’t perform that action at this time.
0 commit comments