Skip to content

Commit

Permalink
chore(npm): Ignore the log file error message of NPM stderr output
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bochtler <[email protected]>
  • Loading branch information
MarcelBochtler committed Dec 16, 2024
1 parent 7328e56 commit 08f6754
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/package-managers/node/src/main/kotlin/npm/Npm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ private fun ModuleInfo.getNonDeduplicatedModuleInfosForId(): Map<String, ModuleI
}

internal fun List<String>.groupLines(vararg markers: String): List<String> {
val ignorableLinePrefixes = setOf("code ", "errno ", "path ", "syscall ")
val ignorableLinePrefixes = setOf(
"A complete log of this run can be found in: ",
"code ",
"errno ",
"path ",
"syscall ",
)
val singleLinePrefixes = setOf("deprecated ", "missing: ", "skipping integrity check for git dependency ")
val minCommonPrefixLength = 5

Expand Down

0 comments on commit 08f6754

Please sign in to comment.