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) } }