I want to use Kotlin JS to create a JavaScript lib...
# multiplatform
d
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
for you to get the task
compileProductionExecutableKotlinJs
you need to add
Copy code
js(IR) {
   // your configuration
   binaries.executable()
}