Skip to content

Commit aaf1417

Browse files
committed
JS: Fix source root
1 parent cb0a249 commit aaf1417

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,8 @@ protected DependencyInstallationResult installDependencies(Set<Path> filesToExtr
712712
if (!verifyYarnInstallation()) {
713713
return DependencyInstallationResult.empty;
714714
}
715-
716-
final Path sourceRoot = Paths.get(".").toAbsolutePath();
717-
final Path virtualSourceRoot = Paths.get(EnvironmentVariables.getScratchDir()).toAbsolutePath();
715+
final Path sourceRoot = LGTM_SRC;
716+
final Path virtualSourceRoot = toRealPath(Paths.get(EnvironmentVariables.getScratchDir()));
718717

719718
// Read all package.json files and index them by name.
720719
Map<Path, JsonObject> packageJsonFiles = new LinkedHashMap<>();

0 commit comments

Comments
 (0)