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)