https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

dasralph

01/03/2021, 11:28 AM
I want to use Kotlin JS to create a JavaScript library with TypeScript declaration files (*.d.ts). For this, I use the new IR compiler. But I’m wondering which Gradle task I should use for it. Currently, I’m using
./gradlew clean compileProductionExecutableKotlinJs
. But
compileProductionExecutableKotlinJs
does not appear in the
./gradlew tasks
list, so I assume it is not the right one. Which Gradle task should I use?
a

andylamax

01/05/2021, 4:19 PM
for you to get the task
compileProductionExecutableKotlinJs
you need to add
Copy code
js(IR) {
   // your configuration
   binaries.executable()
}
4 Views