From 0d5c1674096c96223d346201843d8396f99ce9f3 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Tue, 3 Sep 2024 16:24:04 +0200 Subject: [PATCH] [Wasm] Clean task depends on cleanBuild #KTI-1933 --- wasm/wasm.debug.browsers/build.gradle.kts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wasm/wasm.debug.browsers/build.gradle.kts b/wasm/wasm.debug.browsers/build.gradle.kts index e3cc2051ab3f4..c53f73985af93 100644 --- a/wasm/wasm.debug.browsers/build.gradle.kts +++ b/wasm/wasm.debug.browsers/build.gradle.kts @@ -31,15 +31,13 @@ val cleanBuild by tasks.registering(Delete::class) { val cleanNpm by tasks.registering(Delete::class) { group = "build" - dependsOn(cleanBuild) - delete = setOf("node_modules") } val npmBuild by tasks.registering(NpxTask::class) { group = "build" - dependsOn(tasks.npmInstall, cleanBuild) + dependsOn(tasks.npmInstall) command.set("rollup") workingDir.set(projectDir) @@ -49,7 +47,6 @@ val npmBuild by tasks.registering(NpxTask::class) { outputs.file("build/out/custom-formatters.js") } - tasks { npmInstall { val nodeModulesDir = projectDir.resolve("node_modules") @@ -60,7 +57,7 @@ tasks { } clean { - dependsOn(cleanNpm) + dependsOn(cleanNpm, cleanBuild) } }