Skip to content

Commit 4b2367e

Browse files
committed
perf: optmize bundle
1 parent c99dd99 commit 4b2367e

File tree

3 files changed

+49
-491
lines changed

3 files changed

+49
-491
lines changed

build.config.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ export default defineBuildConfig({
44
entries: [
55
'src/index',
66
],
7-
declaration: true,
7+
declaration: 'node16',
88
clean: true,
99
rollup: {
10-
inlineDependencies: true,
10+
inlineDependencies: [
11+
'@antfu/utils',
12+
'ajv',
13+
'ajv/lib/refs/json-schema-draft-04.json',
14+
'fast-json-stable-stringify',
15+
'fast-deep-equal',
16+
'uri-js',
17+
'json-schema-traverse',
18+
],
1119
},
1220
})

package.json

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,28 @@
1313
"url": "git+https://github.com/antfu/eslint-vitest-rule-tester.git"
1414
},
1515
"bugs": "https://github.com/antfu/eslint-vitest-rule-tester/issues",
16-
"keywords": [],
16+
"keywords": [
17+
"eslint",
18+
"vitest",
19+
"rule-tester"
20+
],
1721
"sideEffects": false,
1822
"exports": {
19-
".": {
20-
"types": "./dist/index.d.ts",
21-
"import": "./dist/index.mjs"
22-
}
23+
".": "./dist/index.mjs"
2324
},
2425
"main": "./dist/index.mjs",
2526
"module": "./dist/index.mjs",
26-
"types": "./dist/index.d.ts",
27-
"typesVersions": {
28-
"*": {
29-
"*": [
30-
"./dist/*",
31-
"./dist/index.d.ts"
32-
]
33-
}
34-
},
27+
"types": "./dist/index.d.mts",
3528
"files": [
3629
"dist"
3730
],
3831
"scripts": {
3932
"build": "unbuild",
4033
"dev": "unbuild --stub",
41-
"lint": "eslint .",
34+
"lint": "eslint",
4235
"prepublishOnly": "nr build",
43-
"release": "bumpp && npm publish",
44-
"start": "esno src/index.ts",
36+
"release": "bumpp && pnpm publish",
37+
"start": "tsx src/index.ts",
4538
"test": "vitest",
4639
"typecheck": "tsc --noEmit",
4740
"prepare": "simple-git-hooks"
@@ -51,24 +44,22 @@
5144
"vitest": "^1.0.0 || ^2.0.0 || ^3.0.0"
5245
},
5346
"dependencies": {
54-
"@antfu/utils": "^9.1.0",
5547
"@types/eslint": "^9.6.1",
5648
"@typescript-eslint/utils": "^8.26.1"
5749
},
5850
"devDependencies": {
5951
"@antfu/eslint-config": "^4.8.1",
6052
"@antfu/ni": "^24.1.0",
53+
"@antfu/utils": "^9.1.0",
6154
"@types/node": "^22.13.10",
6255
"@typescript-eslint/parser": "^8.26.1",
6356
"ajv": "^6.12.6",
6457
"bumpp": "^10.1.0",
6558
"eslint": "^9.22.0",
66-
"esno": "^4.8.0",
6759
"lint-staged": "^15.4.3",
68-
"pnpm": "^10.6.2",
69-
"rimraf": "^6.0.1",
7060
"simple-git-hooks": "^2.11.1",
7161
"taze": "^19.0.2",
62+
"tsx": "^4.19.3",
7263
"typescript": "^5.8.2",
7364
"unbuild": "^3.5.0",
7465
"vite": "^6.2.1",

0 commit comments

Comments
 (0)