Skip to content

Commit befd581

Browse files
authored
chore: use tsdown instead of tsup (#156)
* chore: add tsdown configuration for building TypeScript project * chore: update TypeScript to version 6.0.2 and remove baseUrl from tsconfig
1 parent 6ee4b6a commit befd581

5 files changed

Lines changed: 450 additions & 1000 deletions

File tree

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint-plugin-react-hooks": "^7.0.1",
2727
"eslint-plugin-react-refresh": "^0.5.0",
2828
"globals": "^17.3.0",
29-
"typescript": "^5.9.2",
29+
"typescript": "^6.0.2",
3030
"typescript-eslint": "^8.39.1",
3131
"vite": "^8.0.3",
3232
"vite-plugin-react-og-image": "link:..",

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
],
88
"types": "dist/index.d.ts",
99
"module": "dist/index.mjs",
10+
"type": "module",
1011
"main": "dist/index.js",
1112
"exports": {
1213
".": {
@@ -19,7 +20,7 @@
1920
"format": "biome check --write .",
2021
"lint": "biome check .",
2122
"prepublishOnly": "pnpm build",
22-
"build": "tsup"
23+
"build": "tsdown"
2324
},
2425
"keywords": [
2526
"vite",
@@ -47,8 +48,8 @@
4748
"@biomejs/biome": "2.4.10",
4849
"@types/node": "^25.0.2",
4950
"@types/react": "^19.1.8",
50-
"tsup": "^8.5.0",
51-
"typescript": "^5.9.2",
51+
"tsdown": "^0.21.7",
52+
"typescript": "^6.0.2",
5253
"vite": "^8.0.3"
5354
},
5455
"peerDependencies": {

0 commit comments

Comments
 (0)