Trying to fix build on CI

This commit is contained in:
Alexey Andreev 2024-10-11 18:24:35 +02:00
parent 069caf63cf
commit 0b292bb510

View File

@ -52,6 +52,7 @@ val jsInput = jsInputDir.file("runtime.js")
fun registerRuntimeTasks(taskName: String, wrapperType: String, outputName: String) {
val generateTask by tasks.register<DefaultTask>("generate${taskName}Runtime") {
dependsOn(tasks.npmInstall)
val wrapperFile = jsInputDir.file(wrapperType)
val runtimeFile = jsInput
val outputFile = jsOutputPackageDir.map { it.file("$outputName.js") }
@ -70,6 +71,7 @@ fun registerRuntimeTasks(taskName: String, wrapperType: String, outputName: Stri
}
val optimizeTask = tasks.register<NpmTask>("optimize${taskName}Runtime") {
dependsOn(tasks.npmInstall)
val inputFiles = generateTask.outputs.files
val outputFile = jsOutputPackageDir.map { it.file("$outputName.min.js") }
inputs.files(inputFiles)