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. 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..57bdd7465 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", + }, + }, });