diff --git a/mps/metamodel-api-ts/build.gradle.kts b/mps/metamodel-api-ts/build.gradle.kts index 37c2a0a..07cf12a 100644 --- a/mps/metamodel-api-ts/build.gradle.kts +++ b/mps/metamodel-api-ts/build.gradle.kts @@ -15,8 +15,12 @@ tasks.named("npm_run_build") { } tasks.named("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 {