Skip to content

Commit 4af0014

Browse files
authored
feat!: drop node < 22 support (#126)
1 parent ffc1b11 commit 4af0014

30 files changed

Lines changed: 1378 additions & 2573 deletions

.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.

example/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"paths": {
5+
"sponsorkit": [
6+
"../src/index.ts"
7+
]
8+
},
9+
"declaration": false
10+
},
11+
"exclude": []
12+
}

package.json

Lines changed: 26 additions & 24 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,22 @@
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
],
35+
"engines": {
36+
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
37+
38+
},
3739
"scripts": {
38-
"build": "unbuild",
39-
"stub": "unbuild --stub",
40+
"build": "tsdown",
4041
"dev": "tsx src/cli.ts",
4142
"test": "vitest",
4243
"lint": "eslint .",
@@ -45,34 +46,35 @@
4546
"release": "bumpp"
4647
},
4748
"dependencies": {
48-
"ansis": "^4.3.0",
49+
"ansis": "^4.3.1",
4950
"cac": "^7.0.0",
5051
"consola": "^3.4.2",
51-
"dotenv": "^17.4.2",
52+
"d3-hierarchy": "^3.1.2",
53+
"normalize-url": "^9.0.1",
5254
"ofetch": "^1.5.1",
55+
"p-limit": "^7.3.1",
5356
"sharp": "^0.35.3",
5457
"unconfig": "^7.5.0"
5558
},
5659
"devDependencies": {
57-
"@antfu/eslint-config": "^9.0.0",
58-
"@antfu/ni": "^30.1.0",
60+
"@antfu/eslint-config": "^9.2.0",
61+
"@antfu/ni": "^30.3.0",
5962
"@antfu/utils": "^9.3.0",
6063
"@fast-csv/parse": "^5.0.7",
6164
"@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",
65+
"@types/node": "^26.1.2",
66+
"bumpp": "^12.1.1",
67+
"eslint": "^10.8.0",
68+
"tsdown": "^0.22.14",
7069
"typescript": "^6.0.3",
71-
"unbuild": "^3.6.1",
72-
"vite": "^8.0.13",
73-
"vitest": "^4.1.6"
70+
"vite": "^8.2.0",
71+
"vitest": "^4.1.10"
7472
},
75-
"resolutions": {
76-
"sponsorkit": "workspace:*"
73+
"inlinedDependencies": {
74+
"@antfu/utils": "9.3.0",
75+
"@fast-csv/parse": "5.0.7",
76+
"lodash.escaperegexp": "4.1.2",
77+
"lodash.groupby": "4.6.0",
78+
"lodash.uniq": "4.5.0"
7779
}
7880
}

0 commit comments

Comments
 (0)