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

Configure Feed

Select the types of activity you want to include in your feed.

fix: update tsdown configs and package.json exports for v0.16.6 compatibility

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

+26 -26
+4 -4
packages/codegen-core/package.json
··· 26 ], 27 "type": "module", 28 "main": "./dist/index.cjs", 29 - "module": "./dist/index.js", 30 - "types": "./dist/index.d.ts", 31 "exports": { 32 ".": { 33 "import": { 34 - "types": "./dist/index.d.ts", 35 - "default": "./dist/index.js" 36 }, 37 "require": { 38 "types": "./dist/index.d.cts",
··· 26 ], 27 "type": "module", 28 "main": "./dist/index.cjs", 29 + "module": "./dist/index.mjs", 30 + "types": "./dist/index.d.mts", 31 "exports": { 32 ".": { 33 "import": { 34 + "types": "./dist/index.d.mts", 35 + "default": "./dist/index.mjs" 36 }, 37 "require": { 38 "types": "./dist/index.d.cts",
+1 -1
packages/codegen-core/tsdown.config.ts
··· 8 */ 9 if (ctx.format === 'esm') { 10 return { 11 - js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);", 12 }; 13 } 14
··· 8 */ 9 if (ctx.format === 'esm') { 10 return { 11 + js: `import { createRequire } from 'module'; const require = createRequire(import.${'meta'}.url);`, 12 }; 13 } 14
+6 -6
packages/custom-client/package.json
··· 20 "funding": "https://github.com/sponsors/hey-api", 21 "type": "module", 22 "main": "./dist/index.cjs", 23 - "module": "./dist/index.js", 24 - "types": "./dist/index.d.ts", 25 "exports": { 26 ".": { 27 "import": { 28 - "types": "./dist/index.d.ts", 29 - "default": "./dist/index.js" 30 }, 31 "require": { 32 "types": "./dist/index.d.cts", ··· 35 }, 36 "./plugin": { 37 "import": { 38 - "types": "./dist/plugin.d.ts", 39 - "default": "./dist/plugin.js" 40 }, 41 "require": { 42 "types": "./dist/plugin.d.cts",
··· 20 "funding": "https://github.com/sponsors/hey-api", 21 "type": "module", 22 "main": "./dist/index.cjs", 23 + "module": "./dist/index.mjs", 24 + "types": "./dist/index.d.mts", 25 "exports": { 26 ".": { 27 "import": { 28 + "types": "./dist/index.d.mts", 29 + "default": "./dist/index.mjs" 30 }, 31 "require": { 32 "types": "./dist/index.d.cts", ··· 35 }, 36 "./plugin": { 37 "import": { 38 + "types": "./dist/plugin.d.mts", 39 + "default": "./dist/plugin.mjs" 40 }, 41 "require": { 42 "types": "./dist/plugin.d.cts",
+1 -1
packages/custom-client/rollup.config.mjs
··· 3 import { defineConfig } from 'rollup'; 4 import dts from 'rollup-plugin-dts'; 5 6 - const files = ['index.d.ts', 'index.d.cts', 'plugin.d.ts', 'plugin.d.cts']; 7 8 export default files.map((file) => 9 defineConfig({
··· 3 import { defineConfig } from 'rollup'; 4 import dts from 'rollup-plugin-dts'; 5 6 + const files = ['index.d.mts', 'index.d.cts', 'plugin.d.mts', 'plugin.d.cts']; 7 8 export default files.map((file) => 9 defineConfig({
+2 -2
packages/openapi-ts/bin/run.js
··· 5 import { fileURLToPath } from 'node:url'; 6 7 const __dirname = path.dirname(fileURLToPath(import.meta.url)); 8 - const target = path.join(__dirname, '..', 'dist', 'run.js'); 9 10 if (!fs.existsSync(target)) { 11 - console.error('openapi-ts not built (expect dist/run.js)'); 12 process.exit(1); 13 } 14
··· 5 import { fileURLToPath } from 'node:url'; 6 7 const __dirname = path.dirname(fileURLToPath(import.meta.url)); 8 + const target = path.join(__dirname, '..', 'dist', 'run.mjs'); 9 10 if (!fs.existsSync(target)) { 11 + console.error('openapi-ts not built (expect dist/run.mjs)'); 12 process.exit(1); 13 } 14
+6 -6
packages/openapi-ts/package.json
··· 40 ], 41 "type": "module", 42 "main": "./dist/index.cjs", 43 - "module": "./dist/index.js", 44 - "types": "./dist/index.d.ts", 45 "exports": { 46 ".": { 47 "import": { 48 - "types": "./dist/index.d.ts", 49 - "default": "./dist/index.js" 50 }, 51 "require": { 52 "types": "./dist/index.d.cts", ··· 55 }, 56 "./internal": { 57 "import": { 58 - "types": "./dist/internal.d.ts", 59 - "default": "./dist/internal.js" 60 }, 61 "require": { 62 "types": "./dist/internal.d.cts",
··· 40 ], 41 "type": "module", 42 "main": "./dist/index.cjs", 43 + "module": "./dist/index.mjs", 44 + "types": "./dist/index.d.mts", 45 "exports": { 46 ".": { 47 "import": { 48 + "types": "./dist/index.d.mts", 49 + "default": "./dist/index.mjs" 50 }, 51 "require": { 52 "types": "./dist/index.d.cts", ··· 55 }, 56 "./internal": { 57 "import": { 58 + "types": "./dist/internal.d.mts", 59 + "default": "./dist/internal.mjs" 60 }, 61 "require": { 62 "types": "./dist/internal.d.cts",
+1 -1
packages/openapi-ts/tsdown.config.ts
··· 21 */ 22 if (ctx.format === 'esm') { 23 return { 24 - js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);", 25 }; 26 } 27
··· 21 */ 22 if (ctx.format === 'esm') { 23 return { 24 + js: `import { createRequire } from 'module'; const require = createRequire(import.${'meta'}.url);`, 25 }; 26 } 27
+4 -4
packages/vite-plugin/package.json
··· 27 ], 28 "type": "module", 29 "main": "./dist/index.cjs", 30 - "module": "./dist/index.js", 31 - "types": "./dist/index.d.ts", 32 "exports": { 33 ".": { 34 "import": { 35 - "types": "./dist/index.d.ts", 36 - "default": "./dist/index.js" 37 }, 38 "require": { 39 "types": "./dist/index.d.cts",
··· 27 ], 28 "type": "module", 29 "main": "./dist/index.cjs", 30 + "module": "./dist/index.mjs", 31 + "types": "./dist/index.d.mts", 32 "exports": { 33 ".": { 34 "import": { 35 + "types": "./dist/index.d.mts", 36 + "default": "./dist/index.mjs" 37 }, 38 "require": { 39 "types": "./dist/index.d.cts",
+1 -1
packages/vite-plugin/tsdown.config.ts
··· 8 */ 9 if (ctx.format === 'esm') { 10 return { 11 - js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);", 12 }; 13 } 14 },
··· 8 */ 9 if (ctx.format === 'esm') { 10 return { 11 + js: `import { createRequire } from 'module'; const require = createRequire(import.${'meta'}.url);`, 12 }; 13 } 14 },