Skip to content

Commit 76cdaa5

Browse files
committed
chore: replace unbuild with tsdown
1 parent 6a114f4 commit 76cdaa5

5 files changed

Lines changed: 311 additions & 1053 deletions

File tree

build.config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,30 @@
1414
"url": "https://github.com/zotero-plugin-dev/eslint-config/issues"
1515
},
1616
"exports": {
17-
".": "./dist/index.mjs"
17+
".": "./dist/index.js",
18+
"./package.json": "./package.json"
1819
},
19-
"main": "./dist/index.mjs",
20-
"module": "./dist/index.mjs",
21-
"types": "./dist/index.d.mts",
20+
"main": "./dist/index.js",
21+
"module": "./dist/index.js",
22+
"types": "./dist/index.d.ts",
2223
"files": [
2324
"dist"
2425
],
2526
"publishConfig": {
26-
"access": "public"
27+
"access": "public",
28+
"exports": {
29+
".": "./dist/index.js",
30+
"./package.json": "./package.json"
31+
}
2732
},
2833
"engines": {
2934
"node": "^18.18.0 || >=20.0.0"
3035
},
3136
"scripts": {
32-
"dev": "unbuild --stub",
37+
"dev": "tsdown --watch",
3338
"dev:inspector": "eslint-config-inspector --config eslint-inspector.config.ts",
34-
"build": "pnpm build:typegen && pnpm build:tsc && pnpm build:unbuild",
35-
"build:unbuild": "unbuild",
39+
"build": "pnpm build:typegen && pnpm build:tsc && pnpm build:tsdown",
40+
"build:tsdown": "tsdown",
3641
"build:typegen": "tsx scripts/typegen.ts",
3742
"build:tsc": "tsc --noEmit",
3843
"build:inspector": "eslint-config-inspector build --config eslint-inspector.config.ts",
@@ -62,9 +67,9 @@
6267
"eslint-typegen": "^2.2.0",
6368
"husky": "^9.1.7",
6469
"lint-staged": "^16.1.0",
70+
"tsdown": "^0.12.7",
6571
"tsx": "^4.20.1",
66-
"typescript": "^5.8.3",
67-
"unbuild": "^3.5.0"
72+
"typescript": "^5.8.3"
6873
},
6974
"lint-staged": {
7075
"*": "eslint --fix"

0 commit comments

Comments
 (0)