Skip to content

Commit

Permalink
build(notification): add task to copy lib deps into built artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
manuandru committed May 23, 2024
1 parent c9a1b8c commit 735c5fa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion notifications-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ node {
version = "22.1.0"
}

val piperKtEventCompiledPath = "src/main/typescript/events-lib"
val eventLibDirName = "events-lib"
val piperKtEventCompiledPath = "src/main/typescript/$eventLibDirName"

spotless {
typescript {
Expand All @@ -37,6 +38,15 @@ tasks.named("npmDependencies") {
}
}

tasks.named("compileTypescript") {
doLast {
copy {
from(piperKtEventCompiledPath)
into("build/dist/$eventLibDirName")
}
}
}

tasks.named("buildLayers") {
doLast {
copy {
Expand Down

0 comments on commit 735c5fa

Please sign in to comment.