Skip to content

Commit 126bf44

Browse files
committed
feat!: drop CJS build, now it's ESM-only
1 parent f3909c3 commit 126bf44

File tree

4 files changed

+2024
-2068
lines changed

4 files changed

+2024
-2068
lines changed

build.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ export default defineBuildConfig({
66
],
77
declaration: true,
88
clean: true,
9-
rollup: {
10-
emitCJS: true,
11-
},
129
externals: [
1310
'@typescript-eslint/utils',
1411
],
12+
rollup: {
13+
inlineDependencies: [
14+
'@antfu/utils',
15+
],
16+
},
1517
})

package.json

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "eslint-plugin-antfu",
33
"type": "module",
44
"version": "2.7.0",
5-
"packageManager": "pnpm@9.11.0",
5+
"packageManager": "pnpm@9.15.4",
66
"description": "Anthony extended ESLint rules",
77
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
88
"license": "MIT",
@@ -13,18 +13,19 @@
1313
"url": "git+https://github.com/antfu/eslint-plugin-antfu.git"
1414
},
1515
"bugs": "https://github.com/antfu/eslint-plugin-antfu/issues",
16-
"keywords": [],
16+
"keywords": [
17+
"eslint-plugin"
18+
],
1719
"sideEffects": false,
1820
"exports": {
1921
".": {
20-
"types": "./dist/index.d.ts",
21-
"import": "./dist/index.mjs",
22-
"require": "./dist/index.cjs"
22+
"types": "./dist/index.d.mts",
23+
"default": "./dist/index.mjs"
2324
}
2425
},
2526
"main": "./dist/index.mjs",
2627
"module": "./dist/index.mjs",
27-
"types": "./dist/index.d.ts",
28+
"types": "./dist/index.d.mts",
2829
"files": [
2930
"dist"
3031
],
@@ -42,35 +43,33 @@
4243
"peerDependencies": {
4344
"eslint": "*"
4445
},
45-
"dependencies": {
46-
"@antfu/utils": "^0.7.10"
47-
},
4846
"devDependencies": {
49-
"@antfu/eslint-config": "^3.7.1",
50-
"@antfu/ni": "^0.23.0",
47+
"@antfu/eslint-config": "^4.0.0",
48+
"@antfu/ni": "^23.2.0",
49+
"@antfu/utils": "^8.1.0",
5150
"@types/eslint": "^9.6.1",
5251
"@types/lodash.merge": "^4.6.9",
53-
"@types/node": "^22.5.5",
52+
"@types/node": "^22.10.10",
5453
"@types/semver": "^7.5.8",
55-
"@typescript-eslint/typescript-estree": "^8.6.0",
56-
"@typescript-eslint/utils": "^8.6.0",
57-
"bumpp": "^9.5.2",
58-
"eslint": "^9.10.0",
54+
"@typescript-eslint/typescript-estree": "^8.21.0",
55+
"@typescript-eslint/utils": "^8.21.0",
56+
"bumpp": "^9.10.2",
57+
"eslint": "^9.19.0",
5958
"eslint-define-config": "^2.1.0",
60-
"eslint-vitest-rule-tester": "^0.6.1",
61-
"esno": "^4.7.0",
59+
"eslint-vitest-rule-tester": "^1.1.0",
60+
"esno": "^4.8.0",
6261
"jsonc-eslint-parser": "^2.4.0",
63-
"lint-staged": "^15.2.10",
62+
"lint-staged": "^15.4.2",
6463
"lodash.merge": "4.6.2",
65-
"pnpm": "^9.11.0",
64+
"pnpm": "^9.15.4",
6665
"semver": "^7.6.3",
6766
"simple-git-hooks": "^2.11.1",
68-
"tsup": "^8.3.0",
69-
"tsx": "^4.19.1",
70-
"typescript": "^5.6.2",
71-
"unbuild": "^2.0.0",
72-
"vite": "^5.4.6",
73-
"vitest": "^2.1.1"
67+
"tsup": "^8.3.5",
68+
"tsx": "^4.19.2",
69+
"typescript": "^5.7.3",
70+
"unbuild": "^3.3.1",
71+
"vite": "^6.0.11",
72+
"vitest": "^3.0.4"
7473
},
7574
"resolutions": {
7675
"eslint-plugin-antfu": "workspace:*"

0 commit comments

Comments
 (0)