Skip to content

Commit e1a7471

Browse files
authored
Merge pull request #3688 from hey-api/renovate/tsdown-0.x
chore(deps): update dependency tsdown to v0.21.7
2 parents e19a49f + 1bf75fe commit e1a7471

18 files changed

Lines changed: 365 additions & 653 deletions

File tree

.changeset/polite-wombats-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/vite-plugin": minor
3+
---
4+
5+
**BREAKING**: This package is now ESM-only.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"dev:py": "cd dev && HEYAPI_CODEGEN_ENV=development tsx watch --clear-screen=false ../packages/openapi-python/src/run.ts"
4949
},
5050
"devDependencies": {
51-
"@arethetypeswrong/cli": "0.18.2",
51+
"@arethetypeswrong/core": "0.18.2",
5252
"@changesets/cli": "2.30.0",
5353
"@changesets/get-github-info": "0.8.0",
5454
"@changesets/parse": "0.4.3",
@@ -70,7 +70,8 @@
7070
"husky": "9.1.7",
7171
"lint-staged": "16.4.0",
7272
"oxfmt": "0.41.0",
73-
"tsdown": "0.21.4",
73+
"publint": "0.3.18",
74+
"tsdown": "0.21.7",
7475
"tsx": "4.21.0",
7576
"turbo": "2.8.20",
7677
"typescript": "5.9.3",

packages/codegen-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
"./package.json": "./package.json"
4141
},
4242
"scripts": {
43-
"build": "tsdown && pnpm check-exports",
44-
"check-exports": "attw --pack . --profile esm-only --ignore-rules cjs-resolves-to-esm",
43+
"build": "tsdown",
4544
"dev": "tsdown --watch",
4645
"prepublishOnly": "pnpm build",
4746
"typecheck": "tsgo --noEmit"
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { defineConfig } from 'tsdown';
22

33
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entry: ['src/index.ts'],
7-
format: ['esm'],
8-
minify: false,
4+
attw: {
5+
ignoreRules: ['cjs-resolves-to-esm'],
6+
profile: 'esm-only',
7+
},
8+
publint: true,
99
sourcemap: true,
10-
treeshake: true,
1110
});

packages/custom-client/package.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,21 @@
2525
],
2626
"type": "module",
2727
"sideEffects": false,
28-
"main": "./dist/index.cjs",
29-
"module": "./dist/index.mjs",
28+
"main": "./dist/index.mjs",
3029
"types": "./dist/index.d.mts",
3130
"exports": {
3231
".": {
33-
"import": {
34-
"types": "./dist/index.d.mts",
35-
"default": "./dist/index.mjs"
36-
},
37-
"require": {
38-
"types": "./dist/index.d.cts",
39-
"default": "./dist/index.cjs"
40-
}
32+
"types": "./dist/index.d.mts",
33+
"import": "./dist/index.mjs"
4134
},
4235
"./plugin": {
43-
"import": {
44-
"types": "./dist/plugin.d.mts",
45-
"default": "./dist/plugin.mjs"
46-
},
47-
"require": {
48-
"types": "./dist/plugin.d.cts",
49-
"default": "./dist/plugin.cjs"
50-
}
36+
"types": "./dist/plugin.d.mts",
37+
"import": "./dist/plugin.mjs"
5138
},
5239
"./package.json": "./package.json"
5340
},
5441
"scripts": {
55-
"build": "tsdown && rollup -c && pnpm check-exports",
56-
"check-exports": "attw --profile node16 --pack .",
42+
"build": "tsdown",
5743
"dev": "tsdown --watch",
5844
"prepublishOnly": "pnpm build"
5945
},
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { defineConfig } from 'tsdown';
22

33
export default defineConfig({
4-
clean: true,
5-
dts: true,
4+
attw: {
5+
ignoreRules: ['cjs-resolves-to-esm'],
6+
profile: 'esm-only',
7+
},
68
entry: ['src/index.ts', 'src/plugin.ts'],
7-
format: ['cjs', 'esm'],
8-
minify: false,
9-
shims: false,
9+
publint: true,
1010
sourcemap: true,
11-
treeshake: true,
1211
});

packages/json-schema-ref-parser/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
"./package.json": "./package.json"
4444
},
4545
"scripts": {
46-
"build": "tsdown && pnpm check-exports",
47-
"check-exports": "attw --pack . --profile esm-only --ignore-rules cjs-resolves-to-esm",
46+
"build": "tsdown",
4847
"dev": "tsdown --watch",
4948
"prepublishOnly": "pnpm build",
5049
"typecheck": "tsgo --noEmit"
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { defineConfig } from 'tsdown';
22

33
export default defineConfig({
4-
clean: true,
5-
dts: true,
6-
entry: ['src/index.ts'],
7-
format: ['esm'],
8-
minify: false,
4+
attw: {
5+
ignoreRules: ['cjs-resolves-to-esm'],
6+
profile: 'esm-only',
7+
},
8+
publint: true,
99
sourcemap: true,
10-
treeshake: true,
1110
});

packages/openapi-python/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
"./package.json": "./package.json"
5353
},
5454
"scripts": {
55-
"build": "tsdown && pnpm check-exports",
56-
"check-exports": "attw --pack . --profile esm-only --ignore-rules cjs-resolves-to-esm",
55+
"build": "tsdown",
5756
"dev": "tsdown --watch",
5857
"prepublishOnly": "pnpm build",
5958
"typecheck": "tsgo --noEmit",

packages/openapi-python/tsdown.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { defineConfig } from 'tsdown';
77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
88

99
export default defineConfig({
10-
clean: true,
11-
dts: true,
10+
attw: {
11+
ignoreRules: ['cjs-resolves-to-esm'],
12+
profile: 'esm-only',
13+
},
1214
entry: ['./src/{index,run}.ts'],
13-
format: ['esm'],
14-
minify: false,
1515
onSuccess: async () => {
1616
// Copy client files to dist folder for runtime access
1717
const pluginNames = ['client-httpx'];
@@ -37,6 +37,6 @@ export default defineConfig({
3737
}
3838
}
3939
},
40+
publint: true,
4041
sourcemap: true,
41-
treeshake: true,
4242
});

0 commit comments

Comments
 (0)