Skip to content

Commit

Permalink
fix(nx): affected maximum call stack size exceeded when circular depe…
Browse files Browse the repository at this point in the history
…ndencies
  • Loading branch information
Jimmysh authored and vsavkin committed Nov 4, 2019
1 parent 13ac19f commit e4d54f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/workspace/src/command-line/affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ function visit(
) {
const visited = new Set<string>();
function _visit(projectName: string) {
affectedMetadata.dependencyGraph.dependencies[projectName].forEach(dep => {
_visit(dep.projectName);
});
if (visited.has(projectName)) {
return;
}
visited.add(projectName);
affectedMetadata.dependencyGraph.dependencies[projectName].forEach(dep => {
_visit(dep.projectName);
});
visitor(affectedMetadata.dependencyGraph.projects[projectName]);
}
affectedMetadata.dependencyGraph.roots.forEach(root => {
Expand Down

0 comments on commit e4d54f0

Please sign in to comment.