fork of hey-api/openapi-ts because I need some additional things

Disable minification in packaged code

- Changed minify: !options.watch to minify: false in all tsdown configs
- Removed unused options parameter from defineConfig
- Main bundle size increase: ~330KB raw, ~48KB gzipped
- Improves debugging and code readability for users
- Minimal impact on installation time and no runtime performance impact

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+12 -12
+3 -3
packages/codegen-core/tsdown.config.ts
··· 1 1 import { defineConfig } from 'tsdown'; 2 2 3 - export default defineConfig((options) => ({ 3 + export default defineConfig({ 4 4 banner(ctx) { 5 5 /** 6 6 * fix dynamic require in ESM ··· 18 18 dts: true, 19 19 entry: ['src/index.ts'], 20 20 format: ['cjs', 'esm'], 21 - minify: !options.watch, 21 + minify: false, 22 22 shims: false, 23 23 sourcemap: true, 24 24 treeshake: true, 25 - })); 25 + });
+3 -3
packages/custom-client/tsdown.config.ts
··· 1 1 import { defineConfig } from 'tsdown'; 2 2 3 - export default defineConfig((options) => ({ 3 + export default defineConfig({ 4 4 clean: true, 5 5 dts: true, 6 6 entry: ['src/index.ts', 'src/plugin.ts'], 7 7 format: ['cjs', 'esm'], 8 - minify: !options.watch, 8 + minify: false, 9 9 shims: false, 10 10 sourcemap: true, 11 11 treeshake: true, 12 - })); 12 + });
+3 -3
packages/openapi-ts/tsdown.config.ts
··· 13 13 fs.writeFileSync(filePath, content, 'utf8'); 14 14 }; 15 15 16 - export default defineConfig((options) => ({ 16 + export default defineConfig({ 17 17 banner(ctx) { 18 18 /** 19 19 * fix dynamic require in ESM ··· 31 31 dts: true, 32 32 entry: ['./src/{index,internal,run}.ts'], 33 33 format: ['cjs', 'esm'], 34 - minify: !options.watch, 34 + minify: false, 35 35 onSuccess: async () => { 36 36 // Copy client files to dist folder for runtime access 37 37 const pluginNames = [ ··· 74 74 shims: false, 75 75 sourcemap: true, 76 76 treeshake: true, 77 - })); 77 + });
+3 -3
packages/vite-plugin/tsdown.config.ts
··· 1 1 import { defineConfig } from 'tsdown'; 2 2 3 - export default defineConfig((options) => ({ 3 + export default defineConfig({ 4 4 banner(ctx) { 5 5 /** 6 6 * fix dynamic require in ESM ··· 16 16 dts: true, 17 17 entry: ['src/index.ts'], 18 18 format: ['cjs', 'esm'], 19 - minify: !options.watch, 19 + minify: false, 20 20 shims: false, 21 21 sourcemap: true, 22 22 treeshake: true, 23 - })); 23 + });