Skip to content

Commit

Permalink
build: fix nodejs install task dependencies
Browse files Browse the repository at this point in the history
The publishing workflow failed because of an incomplete workaround.
  • Loading branch information
slisson committed Dec 10, 2024
1 parent ee9648e commit 5a6741f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion model-client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import dev.petuska.npm.publish.task.NodeExecTask
import dev.petuska.npm.publish.task.NpmPackTask

plugins {
Expand Down Expand Up @@ -152,4 +153,6 @@ npmPublish {
}
}

tasks.named("packJsPackage") { dependsOn(":setupNodeEverywhere") }
tasks.withType(NodeExecTask::class) {
dependsOn(":setupNodeEverywhere")
}
7 changes: 6 additions & 1 deletion ts-model-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import dev.petuska.npm.publish.task.NodeExecTask
import org.gradle.kotlin.dsl.withType

plugins {
base
alias(libs.plugins.node)
Expand Down Expand Up @@ -80,4 +83,6 @@ npmPublish {
}
}

tasks.named("packJsPackage") { dependsOn(":setupNodeEverywhere") }
tasks.withType(NodeExecTask::class) {
dependsOn(":setupNodeEverywhere")
}
6 changes: 5 additions & 1 deletion vue-model-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import com.github.gradle.node.npm.task.NpmTask
import dev.petuska.npm.publish.task.NodeExecTask
import dev.petuska.npm.publish.task.NpmPackTask
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import org.gradle.kotlin.dsl.withType

plugins {
base
Expand Down Expand Up @@ -135,4 +137,6 @@ tasks.assemble {
dependsOn("packJsPackage")
}

tasks.named("packJsPackage") { dependsOn(":setupNodeEverywhere") }
tasks.withType(NodeExecTask::class) {
dependsOn(":setupNodeEverywhere")
}

0 comments on commit 5a6741f

Please sign in to comment.