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

@@ -20,4 +20,4 @@ jobs:
# Builds the release artifacts of the library
- name: Test
run: ./gradlew test
run: ./gradlew cleanJvmTest jvmTest

6
.idea/studiobot.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="StudioBotProjectSettings">
<option name="shareContext" value="OptedIn" />
</component>
</project>

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