JS: Also update legacy entry point used by qltest

This commit is contained in:
Asger F
2025-01-29 11:14:10 +01:00
parent 8182190120
commit d66d1a79d6
2 changed files with 6 additions and 2 deletions

View File

@@ -1108,6 +1108,10 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
return false;
}
public static boolean treatAsTSConfig(String basename) {
return basename.contains("tsconfig.") && basename.endsWith(".json");
}
private void findFilesToExtract(
FileExtractor extractor, final Set<Path> filesToExtract, final List<Path> tsconfigFiles)
throws IOException {
@@ -1140,7 +1144,7 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
// extract TypeScript projects from 'tsconfig.json'
if (typeScriptMode == TypeScriptMode.FULL
&& (file.getFileName().toString().contains("tsconfig.") && file.getFileName().toString().endsWith(".json"))
&& treatAsTSConfig(file.getFileName().toString())
&& !excludes.contains(file)
&& isFileIncluded(file)) {
tsconfigFiles.add(file);

View File

@@ -539,7 +539,7 @@ public class Main {
}
if (extractorConfig.getTypeScriptMode() == TypeScriptMode.FULL
&& root.getName().equals("tsconfig.json")
&& AutoBuild.treatAsTSConfig(root.getName())
&& !excludeMatcher.matches(path)) {
projectFiles.add(root);
}