fix: Add JavaScript targets

- Added JS (IR) targets (`browser` and `nodejs`) to the Kotlin Multiplatform configuration for publishing.
This commit is contained in:
2025-10-14 12:15:02 +02:00
parent 6f5ed9c681
commit a084102d85
3 changed files with 15 additions and 1 deletions

View File

@@ -71,6 +71,12 @@ kotlin {
}
}
// JS targets (IR) for publishing
js(IR) {
browser()
nodejs()
}
// iOS targets
iosX64()
iosArm64()
@@ -91,6 +97,8 @@ kotlin {
val commonTest by getting { dependencies { implementation(kotlin("test")) } }
val jvmMain by getting { dependencies { implementation(kotlin("script-runtime")) } }
val jvmTest by getting
val jsMain by getting
val jsTest by getting
val nativeMain by getting
val nativeTest by getting