Skip to content

Commit

Permalink
tiny: generator improvement (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi authored Dec 19, 2024
1 parent 1804bb1 commit 33bc898
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ async function build() {
swift-openapi-generator generate \
--mode types --mode client \
--access-modifier public \
--output-directory Sources/MagicBellClient/generated \
--output-directory output/sources \
${specPath}`,
{
stdio: "inherit",
}
);

move("output/sources", "Sources/MagicBellClient/generated")

if (!hasChangesInPath("Sources")) {
console.log("No changes detected in output.");
return;
Expand Down

0 comments on commit 33bc898

Please sign in to comment.