Skip to content

Commit

Permalink
build(metamodel-api-ts): fix packing task
Browse files Browse the repository at this point in the history
  • Loading branch information
odzhychko committed Oct 26, 2023
1 parent 0446151 commit 7b295e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mps/metamodel-api-ts/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ tasks.named("npm_run_build") {
}

tasks.named<NpmTask>("npm_pack") {
val packageDirectory = project.layout.buildDirectory.dir("packages").get().asFile
dependsOn("npm_run_build")
args.addAll("--pack-destination", "./build/packages")
doFirst {
packageDirectory.mkdirs()
}
args.addAll("--pack-destination", packageDirectory.path)
}

tasks.assemble {
Expand Down

0 comments on commit 7b295e9

Please sign in to comment.