JS: Extract TS snippets with no tsconfig.json file

This commit is contained in:
Asger F
2025-02-18 12:43:13 +01:00
parent 53557dbebd
commit b3f7cd988b

View File

@@ -1087,6 +1087,12 @@ protected DependencyInstallationResult preparePackagesAndDependencies(Set<Path>
remainingTypeScriptFiles.add(f);
}
}
for (Map.Entry<Path, FileSnippet> entry : state.getSnippets().entrySet()) {
if (!extractedFiles.contains(entry.getKey())
&& FileType.forFileExtension(entry.getKey().toFile()) == FileType.TYPESCRIPT) {
remainingTypeScriptFiles.add(entry.getKey());
}
}
if (!remainingTypeScriptFiles.isEmpty()) {
extractTypeScriptFiles(remainingTypeScriptFiles, extractedFiles, extractors);
}