From 0b292bb510eed0ada6a14fb56d5a22c9e4eaede4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 11 Oct 2024 18:24:35 +0200 Subject: [PATCH] Trying to fix build on CI --- core/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index e89a83ef0..6d86f3bbe 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -52,6 +52,7 @@ val jsInput = jsInputDir.file("runtime.js") fun registerRuntimeTasks(taskName: String, wrapperType: String, outputName: String) { val generateTask by tasks.register("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("optimize${taskName}Runtime") { + dependsOn(tasks.npmInstall) val inputFiles = generateTask.outputs.files val outputFile = jsOutputPackageDir.map { it.file("$outputName.min.js") } inputs.files(inputFiles)