Skip to content

Commit

Permalink
docs(yarn2): Remove two code comments which do not provide much info
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 Nov 22, 2024
1 parent 33837c0 commit e1d9178
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/package-managers/node/src/main/kotlin/yarn2/Yarn2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ class Yarn2(
override fun resolveDependencies(definitionFile: File, labels: Map<String, String>): List<ProjectAnalyzerResult> {
val workingDir = definitionFile.parentFile

// Running `yarn install` before `yarn info` allows to get the real local package version. Otherwise, it will be
// a generic one such as '0.0.0-use.local'.

run("install", workingDir = workingDir)

val packageInfos = getPackageInfos(workingDir)
Expand All @@ -212,7 +209,6 @@ class Yarn2(
}

private fun getPackageInfos(workingDir: File): List<PackageInfo> {
// Query the list of all packages with their dependencies. The output is in NDJSON format.
val process = run(
"info",
"-A",
Expand Down

0 comments on commit e1d9178

Please sign in to comment.