Skip to content

Commit

Permalink
fix bug in node_modules identification
Browse files Browse the repository at this point in the history
  • Loading branch information
mmews committed Jan 8, 2024
1 parent 180bc4f commit ce20bc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,14 @@ private Set<Path> collectNecessaryDependencies(Set<Path> allProjectDirs, Map<Pat
private void collectProjectDependencies(Set<Path> allProjectDirs, Path projectDir,
Map<Path, ProjectDescription> pdCache, Set<Path> dependencies) {

NodeModulesFolder nodeModulesFolder = nodeModulesDiscoveryHelper.getNodeModulesFolder(projectDir, pdCache);
LinkedHashSet<Path> workList = new LinkedHashSet<>();
workList.add(projectDir);
while (!workList.isEmpty()) {
Iterator<Path> iterator = workList.iterator();
Path nextProject = iterator.next();
iterator.remove();

NodeModulesFolder nodeModulesFolder = nodeModulesDiscoveryHelper.getNodeModulesFolder(nextProject, pdCache);
findDependencies(allProjectDirs, nextProject, nodeModulesFolder, pdCache, workList, dependencies);
}
}
Expand Down

0 comments on commit ce20bc7

Please sign in to comment.