Skip to content

Commit 762be6c

Browse files
committed
build: move to tsdown
1 parent 9bd49b7 commit 762be6c

3 files changed

Lines changed: 515 additions & 136 deletions

File tree

package.json

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,22 @@
1414
},
1515
"exports": {
1616
".": {
17-
"types": "./dist/index.d.ts",
18-
"import": {
19-
"types": "./dist/index.d.ts",
20-
"default": "./dist/index.js"
21-
},
22-
"require": {
23-
"types": "./dist/index.d.cts",
24-
"default": "./dist/index.cjs"
25-
},
26-
"default": "./dist/index.js"
17+
"types": "./dist/index.d.mts",
18+
"import": "./dist/index.mjs"
2719
},
2820
"./iconify": {
29-
"types": "./dist/iconify.d.ts",
30-
"import": {
31-
"types": "./dist/iconify.d.ts",
32-
"default": "./dist/iconify.js"
33-
},
34-
"require": {
35-
"types": "./dist/iconify.d.cts",
36-
"default": "./dist/iconify.cjs"
37-
},
38-
"default": "./dist/iconify.js"
39-
}
21+
"types": "./dist/iconify.d.mts",
22+
"import": "./dist/iconify.mjs"
23+
},
24+
"./package.json": "./package.json"
4025
},
41-
"main": "./dist/index.cjs",
42-
"module": "./dist/index.js",
43-
"types": "./dist/index.d.ts",
4426
"files": [
4527
"dist"
4628
],
4729
"scripts": {
4830
"prepare": "simple-git-hooks",
4931
"gen-types": "node ./gen-types.mjs && eslint --fix ./types.ts",
50-
"build-fast": "pnpm gen-types && tsup src/index.ts src/iconify.ts --format cjs,esm",
51-
"build": "pnpm run build-fast --dts-resolve",
32+
"build": "pnpm gen-types && tsdown",
5233
"prepublishOnly": "pnpm run build",
5334
"test": "vitest run",
5435
"lint": "eslint --max-warnings 0",
@@ -68,6 +49,7 @@
6849
"@iconify/utils": "^3.1.0"
6950
},
7051
"devDependencies": {
52+
"@arethetypeswrong/core": "^0.18.2",
7153
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
7254
"@iconify-json/heroicons": "^1.2.3",
7355
"@iconify/json": "^2.2.433",
@@ -80,9 +62,10 @@
8062
"postcss": "^8.5.6",
8163
"prettier": "^3.8.1",
8264
"prettier-plugin-tailwindcss": "^0.7.2",
65+
"publint": "^0.3.17",
8366
"simple-git-hooks": "^2.13.1",
8467
"tailwindcss": "^3.4.19",
85-
"tsup": "^8.5.1",
68+
"tsdown": "^0.20.1",
8669
"typescript": "^5.9.3",
8770
"vitest": "^4.0.18"
8871
},

0 commit comments

Comments
 (0)