Skip to content

Commit

Permalink
Revert "Fix version management for Windows"
Browse files Browse the repository at this point in the history
This reverts commit 198a169.
  • Loading branch information
turansky committed Jan 4, 2025
1 parent c125307 commit 5d51291
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ dependencyResolutionManagement {
.drop(1)
.filter { ".npm.version=" in it }
.forEach { data ->
val lineSeparator = System.lineSeparator()

val packageName = data.substringBefore(lineSeparator)
val packageName = data.substringBefore("\n")
val packageAlias = packageName
.removePrefix("@")
.replace(
Expand All @@ -40,8 +38,8 @@ dependencyResolutionManagement {
.replace("/", "-")

val version = data
.substringAfter(lineSeparator)
.substringBefore(lineSeparator)
.substringAfter("\n")
.substringBefore("\n")
.substringAfter("=", "")

library("npm-$packageAlias", "npm", packageName).version(version)
Expand Down

0 comments on commit 5d51291

Please sign in to comment.