Skip to content

Commit d851641

Browse files
committed
chore: switch to tsdown
1 parent ffc1b11 commit d851641

8 files changed

Lines changed: 1284 additions & 2499 deletions

File tree

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Enable the ESlint flat config support
3-
"eslint.useFlatConfig": true,
4-
52
// Disable the default formatter, use eslint instead
63
"prettier.enable": false,
74
"editor.formatOnSave": false,

bin/sponsorkit.mjs

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

build.config.ts

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

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sponsorkit",
33
"type": "module",
44
"version": "17.1.1",
5-
"packageManager": "pnpm@11.1.3",
5+
"packageManager": "pnpm@11.18.0",
66
"description": "Toolkit for generating sponsors images",
77
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
88
"license": "MIT",
@@ -22,21 +22,18 @@
2222
"sideEffects": false,
2323
"exports": {
2424
".": "./dist/index.mjs",
25+
"./cli": "./dist/cli.mjs",
2526
"./package.json": "./package.json"
2627
},
27-
"main": "./dist/index.mjs",
28-
"module": "./dist/index.mjs",
29-
"types": "./dist/index.d.mts",
3028
"bin": {
31-
"sponsorkit": "./bin/sponsorkit.mjs"
29+
"sponsorkit": "./dist/cli.mjs"
3230
},
3331
"files": [
3432
"bin",
3533
"dist"
3634
],
3735
"scripts": {
38-
"build": "unbuild",
39-
"stub": "unbuild --stub",
36+
"build": "tsdown",
4037
"dev": "tsx src/cli.ts",
4138
"test": "vitest",
4239
"lint": "eslint .",
@@ -45,34 +42,38 @@
4542
"release": "bumpp"
4643
},
4744
"dependencies": {
48-
"ansis": "^4.3.0",
45+
"ansis": "^4.3.1",
4946
"cac": "^7.0.0",
5047
"consola": "^3.4.2",
51-
"dotenv": "^17.4.2",
48+
"d3-hierarchy": "^3.1.2",
49+
"normalize-url": "^9.0.1",
5250
"ofetch": "^1.5.1",
51+
"p-limit": "^7.3.1",
5352
"sharp": "^0.35.3",
5453
"unconfig": "^7.5.0"
5554
},
5655
"devDependencies": {
57-
"@antfu/eslint-config": "^9.0.0",
58-
"@antfu/ni": "^30.1.0",
56+
"@antfu/eslint-config": "^9.2.0",
57+
"@antfu/ni": "^30.3.0",
5958
"@antfu/utils": "^9.3.0",
6059
"@fast-csv/parse": "^5.0.7",
6160
"@types/d3-hierarchy": "^3.1.7",
62-
"@types/node": "^25.9.1",
63-
"bumpp": "^11.1.0",
64-
"d3-hierarchy": "^3.1.2",
65-
"eslint": "^10.4.0",
66-
"jiti": "^2.7.0",
67-
"normalize-url": "^9.0.0",
68-
"p-limit": "^7.3.0",
69-
"tsx": "^4.22.3",
61+
"@types/node": "^26.1.2",
62+
"bumpp": "^12.1.1",
63+
"eslint": "^10.8.0",
64+
"tsdown": "^0.22.14",
7065
"typescript": "^6.0.3",
71-
"unbuild": "^3.6.1",
72-
"vite": "^8.0.13",
73-
"vitest": "^4.1.6"
66+
"vite": "^8.2.0",
67+
"vitest": "^4.1.10"
7468
},
7569
"resolutions": {
7670
"sponsorkit": "workspace:*"
71+
},
72+
"inlinedDependencies": {
73+
"@antfu/utils": "9.3.0",
74+
"@fast-csv/parse": "5.0.7",
75+
"lodash.escaperegexp": "4.1.2",
76+
"lodash.groupby": "4.6.0",
77+
"lodash.uniq": "4.5.0"
7778
}
7879
}

0 commit comments

Comments
 (0)