Skip to content

Commit 27cff85

Browse files
committed
JS: Only exclude JS files in the tsconfig outDir
1 parent 63329b4 commit 27cff85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ private CompletableFuture<?> extractSource() throws IOException {
794794
}
795795
}
796796
// exclude files in output directories as configured in tsconfig.json
797-
filesToExtract.removeIf(f -> outDirs.stream().anyMatch(od -> f.startsWith(od)));
797+
filesToExtract.removeIf(f -> FileType.forFileExtension(f.toFile()) == FileType.JS && outDirs.stream().anyMatch(od -> f.startsWith(od)));
798798

799799
DependencyInstallationResult dependencyInstallationResult = DependencyInstallationResult.empty;
800800
if (!tsconfigFiles.isEmpty()) {

0 commit comments

Comments
 (0)