Skip to content

Commit 0f60bc4

Browse files
committed
Rebased on develop branch
1 parent dd12c4f commit 0f60bc4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build-logic/src/main/kotlin/kotlinx/io/conventions/kotlinx-io-multiplatform.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
77
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
8+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
89
import kotlin.jvm.optionals.getOrNull
910

1011
plugins {
@@ -36,6 +37,13 @@ kotlin {
3637
}
3738
}
3839

40+
@OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl::class)
41+
wasm {
42+
nodejs()
43+
browser()
44+
binaries.executable()
45+
}
46+
3947
sourceSets {
4048
commonTest {
4149
dependencies {
@@ -160,3 +168,7 @@ fun androidTargets() = listOf(
160168
"androidNativeX64",
161169
"androidNativeX86"
162170
)
171+
172+
rootProject.the<NodeJsRootExtension>().apply {
173+
nodeVersion = "20.4.0"
174+
}

0 commit comments

Comments
 (0)