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