From 3db0cc37241d41dd9bd146605f8ef4bfcd5ea489 Mon Sep 17 00:00:00 2001 From: xxnuo <54252779+xxnuo@users.noreply.github.com> Date: Thu, 1 Jan 2026 16:58:47 +0800 Subject: [PATCH] fix(build): run tsoa generation before building --- scripts/build.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.ts b/scripts/build.ts index d394434..f405ee4 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -20,6 +20,9 @@ console.log("Cleaning dist..."); await $`rm -rf dist`; await $`mkdir -p dist`; +console.log("Generating routes and spec..."); +await $`bun run gen`; + for (const target of targets) { const ext = target.bun.includes("windows") ? ".exe" : ""; const outfile = `dist/mtranserver-${version}-${target.name}${ext}`;