Skip to content

Commit ddcb7fe

Browse files
committed
feat: migrate to Node 22
1 parent 4993b76 commit ddcb7fe

File tree

105 files changed

+4456
-5415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4456
-5415
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [windows-latest, macos-latest, ubuntu-latest]
14-
node: [14.19.0, 16, 17, 18]
14+
node: [21, 22]
1515

1616
steps:
1717
- name: Checkout code

eslint.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import shared from "@wessberg/ts-config/eslint.config.js";
2+
3+
export default [
4+
...shared,
5+
{
6+
rules: {}
7+
}
8+
];

package.json

Lines changed: 37 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@
1515
"generate:sandhog": "node dist/cli/index.js all --yes",
1616
"generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog",
1717
"clean": "rimraf dist",
18-
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
18+
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color --fix",
1919
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
20-
"tsc:test": "tsc --module commonjs",
21-
"test": "ava",
22-
"prebuild": "npm run clean",
23-
"build": "pnpm run prebuild && pnpm run rollup",
24-
"watch": "pnpm run prebuild && pnpm run rollup -- --watch",
25-
"rollup": "rollup -c rollup.config.mjs",
20+
"test": "node --import tsx --test \"./test/**/*.test.ts\"",
21+
"prebuild": "pnpm run clean",
22+
"build": "pnpm run prebuild && tsup --entry=\"src/index.ts\" --entry=\"src/cli/index.ts\" --sourcemap --dts --format esm",
2623
"preversion": "pnpm run lint && pnpm run build",
2724
"version": "pnpm run preversion && pnpm run generate:all && git add .",
2825
"release": "np --no-cleanup --no-yarn",
@@ -41,51 +38,47 @@
4138
"backers"
4239
],
4340
"dependencies": {
44-
"@types/prettier": "^2.6.3",
41+
"@inquirer/prompts": "7.0.0",
4542
"ansi-colors": "^4.1.3",
46-
"commander": "^9.3.0",
47-
"eslint": "^8.16.0",
48-
"inquirer": "^8.2.4",
49-
"json5": "^2.2.1",
43+
"commander": "^12.1.0",
44+
"eslint": "^9.12.0",
45+
"json5": "^2.2.3",
5046
"markdown-toc": "^1.2.0",
51-
"prettier": "^2.6.2",
52-
"yaml": "^2.1.1",
53-
"helpertypes": "^0.0.18",
47+
"prettier": "^3.3.3",
48+
"yaml": "^2.5.1",
49+
"helpertypes": "^0.0.19",
5450
"crosspath": "2.0.0"
5551
},
5652
"devDependencies": {
57-
"@types/eslint": "^8.4.2",
58-
"@types/inquirer": "^8.2.1",
59-
"@types/node": "^17.0.36",
60-
"@typescript-eslint/eslint-plugin": "^5.27.0",
61-
"@typescript-eslint/parser": "^5.27.0",
62-
"@wessberg/ts-config": "^2.0.2",
53+
"@types/eslint": "^9.6.1",
54+
"@types/node": "^22.7.5",
55+
"@wessberg/ts-config": "^5.0.20",
6356
"@wessberg/prettier-config": "1.0.0",
64-
"rollup-plugin-ts": "^3.0.0",
65-
"rimraf": "^3.0.2",
66-
"ava": "^4.2.0",
67-
"eslint-config-prettier": "^8.5.0",
68-
"eslint-plugin-import": "^2.26.0",
69-
"eslint-plugin-jsdoc": "^39.3.2",
70-
"husky": "^8.0.1",
71-
"np": "7.6.1",
72-
"pnpm": "^7.1.7",
73-
"pretty-quick": "^3.1.3",
74-
"rollup": "^2.75.4",
75-
"standard-changelog": "^2.0.27",
76-
"ts-node": "^10.8.0",
77-
"tslib": "^2.4.0",
78-
"typescript": "^4.7.2",
79-
"npm-check-updates": "13.0.3"
57+
"@eslint/js": "9.12.0",
58+
"eslint": "^9.12.0",
59+
"eslint-config-prettier": "^9.1.0",
60+
"eslint-plugin-jsdoc": "^50.3.1",
61+
"eslint-plugin-prettier": "^5.2.1",
62+
"typescript-eslint": "^8.8.1",
63+
"rimraf": "^6.0.1",
64+
"husky": "^9.1.6",
65+
"np": "10.0.7",
66+
"pnpm": "^9.12.1",
67+
"pretty-quick": "^4.0.0",
68+
"standard-changelog": "^6.0.0",
69+
"ts-node": "^10.9.2",
70+
"tsup": "^8.3.0",
71+
"tsx": "^4.19.1",
72+
"typescript": "5.6.3",
73+
"npm-check-updates": "17.1.3"
8074
},
8175
"exports": {
82-
"import": "./dist/esm/index.js",
83-
"require": "./dist/cjs/index.cjs"
76+
"import": "./dist/index.js"
8477
},
8578
"type": "module",
86-
"types": "./dist/esm/index.d.ts",
87-
"main": "./dist/cjs/index.cjs",
88-
"module": "./dist/esm/index.js",
79+
"types": "./dist/index.d.ts",
80+
"main": "./dist/index.js",
81+
"module": "./dist/index.js",
8982
"funding": {
9083
"type": "github",
9184
"url": "https://github.com/wessberg/sandhog?sponsor=1"
@@ -109,22 +102,7 @@
109102
}
110103
],
111104
"engines": {
112-
"node": ">=14.19.0"
105+
"node": ">=18.20.0"
113106
},
114-
"prettier": "@wessberg/prettier-config",
115-
"ava": {
116-
"files": [
117-
"test/**.test.ts"
118-
],
119-
"verbose": true,
120-
"extensions": {
121-
"ts": "module"
122-
},
123-
"nodeArguments": [
124-
"--loader=ts-node/esm"
125-
],
126-
"environmentVariables": {
127-
"FORCE_COLOR": "3"
128-
}
129-
}
107+
"prettier": "@wessberg/prettier-config"
130108
}

0 commit comments

Comments
 (0)