Skip to content

Commit b3cabb2

Browse files
committed
refactor: replace tsup with tsdown for build configuration
1 parent 38593fd commit b3cabb2

5 files changed

Lines changed: 502 additions & 579 deletions

File tree

package.json

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,35 @@
1414
"description": "A parser for SDF files with streaming support",
1515
"license": "MIT",
1616
"type": "module",
17+
"main": "./dist/index.cjs",
18+
"module": "./dist/index.js",
1719
"exports": {
1820
".": "./src/index.ts",
1921
"./node": "./src/node-stream.ts",
20-
"./web": "./src/web-stream.ts"
22+
"./web": "./src/web-stream.ts",
23+
"./package.json": "./package.json"
2124
},
22-
"types": "./src/index.ts",
25+
"types": "./dist/index.d.cts",
2326
"publishConfig": {
2427
"exports": {
2528
".": {
26-
"types": "./dist/index.d.ts",
27-
"import": "./dist/index.js",
28-
"require": "./dist/index.cjs"
29+
"require": "./dist/index.cjs",
30+
"import": "./dist/index.js"
2931
},
3032
"./node": {
31-
"types": "./dist/node-stream.d.ts",
32-
"import": "./dist/node-stream.js",
33-
"require": "./dist/node-stream.cjs"
33+
"require": "./dist/node.cjs",
34+
"import": "./dist/node.js"
3435
},
3536
"./web": {
36-
"types": "./dist/web-stream.d.ts",
37-
"import": "./dist/web-stream.js",
38-
"require": "./dist/web-stream.cjs"
39-
}
40-
},
41-
"main": "dist/index.cjs",
42-
"module": "dist/index.js",
43-
"types": "dist/index.d.ts"
37+
"require": "./dist/web.cjs",
38+
"import": "./dist/web.js"
39+
},
40+
"./package.json": "./package.json"
41+
}
4442
},
4543
"scripts": {
46-
"build": "tsup",
47-
"start": "tsup --watch",
44+
"build": "tsdown",
45+
"start": "tsdown --watch",
4846
"tsc": "tsc --pretty --noEmit",
4947
"lint": "eslint --cache --max-warnings=0",
5048
"format": "eslint --fix --cache --max-warnings=0",
@@ -54,7 +52,7 @@
5452
"@squonk/eslint-config": "2.0.0",
5553
"@types/node": "22.9.0",
5654
"eslint": "8.57.0",
57-
"tsup": "8.0.2",
55+
"tsdown": "0.18.3",
5856
"typescript": "5.4.5",
5957
"vitest": "1.5.0",
6058
"node-fetch": "3.3.2"

0 commit comments

Comments
 (0)