Skip to content

Commit

Permalink
[Wasm] Clean task depends on cleanBuild
Browse files Browse the repository at this point in the history
#KTI-1933
  • Loading branch information
ilgonmic authored and qodana-bot committed Sep 3, 2024
1 parent a090272 commit 0d5c167
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wasm/wasm.debug.browsers/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand All @@ -60,7 +57,7 @@ tasks {
}

clean {
dependsOn(cleanNpm)
dependsOn(cleanNpm, cleanBuild)
}
}

Expand Down

0 comments on commit 0d5c167

Please sign in to comment.