Skip to content

Commit 8136402

Browse files
committed
feat(workspace): use tsdown
1 parent d5af60e commit 8136402

5 files changed

Lines changed: 771 additions & 54 deletions

File tree

cspell.config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
words:
2+
- Ayaka
23
- bumpp
34
- defu
45
- gpuu
6+
- Neko
7+
- taze
8+
- tsdown
9+
- unrs
10+
- webgpu

package.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,50 @@
1616
},
1717
"exports": {
1818
".": {
19-
"types": "./dist/index.d.ts",
19+
"types": "./dist/index.d.mts",
2020
"default": "./dist/index.mjs"
2121
},
2222
"./webgpu": {
23-
"types": "./dist/webgpu/index.d.ts",
23+
"types": "./dist/webgpu/index.d.mts",
2424
"default": "./dist/webgpu/index.mjs"
2525
}
2626
},
2727
"main": "./dist/index.mjs",
2828
"module": "./dist/index.mjs",
29-
"types": "./dist/index.d.ts",
29+
"types": "./dist/index.d.mts",
3030
"files": [
3131
"README.md",
3232
"dist",
3333
"package.json"
3434
],
3535
"scripts": {
36-
"dev": "pnpm run stub",
37-
"stub": "unbuild --stub",
38-
"build": "unbuild",
36+
"dev": "tsdown",
37+
"stub": "tsdown",
38+
"build": "tsdown",
3939
"typecheck": "tsc --noEmit",
4040
"lint": "eslint .",
4141
"lint:fix": "eslint --fix .",
42+
"attw": "attw --pack . --profile esm-only --ignore-rules cjs-resolves-to-esm",
4243
"up": "taze -w -r -I -f && pnpm prune && pnpm dedupe"
4344
},
44-
"dependencies": {
45-
"defu": "^6.1.4"
46-
},
4745
"devDependencies": {
4846
"@antfu/eslint-config": "^4.14.1",
49-
"@types/node": "^22.15.31",
47+
"@arethetypeswrong/cli": "^0.18.2",
48+
"@types/node": "^24.0.1",
5049
"@webgpu/types": "^0.1.61",
5150
"bumpp": "^10.1.1",
5251
"eslint": "^9.29.0",
5352
"eslint-plugin-import-x": "^4.15.2",
5453
"taze": "^19.1.0",
54+
"tsdown": "^0.12.7",
5555
"typescript": "^5.8.3",
56-
"unbuild": "^3.5.0"
56+
"unbuild": "^3.5.0",
57+
"unplugin-unused": "^0.5.1"
58+
},
59+
"pnpm": {
60+
"onlyBuiltDependencies": [
61+
"esbuild",
62+
"unrs-resolver"
63+
]
5764
}
5865
}

0 commit comments

Comments
 (0)