[Gradle, JS] Producing for ir target through legacy target

This commit is contained in:
Ilya Goncharov
2020-01-23 13:49:35 +03:00
parent 21a1e2e89f
commit 18fa5266b7
2 changed files with 20 additions and 0 deletions
@@ -43,6 +43,16 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
override val testTaskDescription: String
get() = "Run all ${target.name} tests inside browser using karma and webpack"
override fun produceKotlinLibrary() {
super.produceKotlinLibrary()
target.irTarget?.browser?.produceKotlinLibrary()
}
override fun produceExecutable() {
super.produceExecutable()
target.irTarget?.browser?.produceExecutable()
}
override fun configure() {
super.configure()
browserProducingConfiguredHandlers.forEach { handler ->
@@ -20,6 +20,16 @@ open class KotlinNodeJs @Inject constructor(target: KotlinJsTarget) :
private val runTaskName = disambiguateCamelCased("run")
override fun produceKotlinLibrary() {
super.produceKotlinLibrary()
target.irTarget?.nodejs?.produceKotlinLibrary()
}
override fun produceExecutable() {
super.produceExecutable()
target.irTarget?.nodejs?.produceExecutable()
}
override fun configure() {
super.configure()
nodejsProducingConfiguredHandlers.forEach { handler ->