[JS] Define Node.js version in one place and use a single version everywhere

Consequently, it fixes the inability to run some JS related tests on Apple devices with ARM.
This commit is contained in:
Zalim Bashorov
2022-04-21 20:02:10 +02:00
parent 64bcd8c91e
commit 90c867ae1d
7 changed files with 11 additions and 8 deletions
+2
View File
@@ -261,6 +261,8 @@ fun Project.kotlinxCollectionsImmutable() =
val Project.kotlinNativeVersion: String get() = property("versions.kotlin-native") as String
val Project.nodejsVersion: String get() = property("versions.nodejs") as String
fun File.matchMaybeVersionedArtifact(baseName: String) = name.matches(baseName.toMaybeVersionedJarRegex())
private val wildcardsRe = """[^*?]+|(\*)|(\?)""".toRegex()