From ebff5c09a3e5bf43615199a9da29494b4d285385 Mon Sep 17 00:00:00 2001 From: Takayuki Oda Date: Fri, 3 Jul 2026 12:27:05 +0000 Subject: [PATCH 1/3] fix: tsdown overwrites "sta" bin command. Also remove the bin command section from package.json to make sure that the tsdown configuration is the single source of truth. From tsdown 0.22.0, they started to support generating "bin" automatically, but that behaviour was not matching with this repository's structure. --- package.json | 4 ---- tsdown.config.ts | 7 ++++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index bd964a539..b3fa1163a 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,6 @@ "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", - "bin": { - "sta": "./dist/cli.mjs", - "swagger-typescript-api": "./dist/cli.mjs" - }, "files": [ "dist", "templates" diff --git a/tsdown.config.ts b/tsdown.config.ts index 044d2e94c..e78c3e1de 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -8,5 +8,10 @@ export default defineConfig({ dts: true, format: ["esm", "cjs"], sourcemap: true, - exports: true, + exports: { + bin: { + sta: "./index.ts", + "swagger-typescript-api": "./index.ts", + } + }, }); From 6b40bdbef74bba90dec0bd8dd9b3e7ca78e03de8 Mon Sep 17 00:00:00 2001 From: Takayuki Oda Date: Fri, 3 Jul 2026 13:22:56 +0000 Subject: [PATCH 2/3] format --- tsdown.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdown.config.ts b/tsdown.config.ts index e78c3e1de..57bdd7465 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -12,6 +12,6 @@ export default defineConfig({ bin: { sta: "./index.ts", "swagger-typescript-api": "./index.ts", - } + }, }, }); From eaf5c3be042933e79ac988c13a9ba60dfb1b17e1 Mon Sep 17 00:00:00 2001 From: Takayuki Oda Date: Sat, 4 Jul 2026 12:45:20 +0000 Subject: [PATCH 3/3] chore: add changeset --- .changeset/lazy-lines-drop.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lazy-lines-drop.md diff --git a/.changeset/lazy-lines-drop.md b/.changeset/lazy-lines-drop.md new file mode 100644 index 000000000..ffdf9bc23 --- /dev/null +++ b/.changeset/lazy-lines-drop.md @@ -0,0 +1,5 @@ +--- +"swagger-typescript-api": patch +--- + +Bring "sta" command back to life, accidentally removed by a tsdown upgrade.