Skip to content

Commit

Permalink
refactor(bazel): Use a more speaking name for node
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Jul 1, 2024
1 parent ee1df8b commit 0035d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/package-managers/bazel/src/main/kotlin/Bazel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ class Bazel(
"mod", "graph", "--output", "json", "--disk_cache=", workingDir = projectDir
)

val node = modGraphProcess.stdout.parseBazelModule()
val devDeps = node.dependencies.filter { depDirectives[it.key]?.devDependency == true }.toSet()
val mainDeps = node.dependencies.toSet() - devDeps
val mainModule = modGraphProcess.stdout.parseBazelModule()
val devDeps = mainModule.dependencies.filter { depDirectives[it.key]?.devDependency == true }.toSet()
val mainDeps = mainModule.dependencies.toSet() - devDeps

return setOf(
Scope(
Expand Down

0 comments on commit 0035d76

Please sign in to comment.