Skip to content

Commit

Permalink
🐛 virtual Yarn workspace-aggregator created in Yarn monorepo feature …
Browse files Browse the repository at this point in the history
…removed from impact graph
  • Loading branch information
noyshabtay committed Nov 23, 2023
1 parent 9c331c5 commit efb4a12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/jfrog/ide/common/yarn/YarnTreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ private void addDepTreeNodes(Map<String, DepTreeNode> nodes, JsonNode jsonDep, D

private boolean isDirectDependency(String rawDependency) {
rawDependency = StringUtils.lowerCase(rawDependency); // The word specified can be in upper or lower case
return StringUtils.contains(rawDependency, "specified in");
// If rawDependency contains "specified in" or "workspace-aggregator-" it is a direct dependency
return StringUtils.contains(rawDependency, "specified in") || StringUtils.contains(rawDependency, "workspace-aggregator-");
}

/**
* Extracts a single dependency path from a raw dependency Json string returned from 'Yarn why' command.
*
Expand Down

0 comments on commit efb4a12

Please sign in to comment.