Skip to content

Commit 436cbcb

Browse files
authored
fix: remove unused dependencies (#2484)
1 parent b1c2a13 commit 436cbcb

File tree

11 files changed

+151
-216
lines changed

11 files changed

+151
-216
lines changed

knip.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": [
4+
"src/{core,browser,node,native}/index.ts!",
5+
"src/mockServiceWorker.js!",
6+
"cli/index.js!",
7+
"config/**/*.{js,ts}!",
8+
"test/**/*ts"
9+
],
10+
"project": ["src/**/*.ts!", "cli/**/*.js!", "config/**/*.{js,ts}!"]
11+
}

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
"prepare": "pnpm simple-git-hooks init",
9393
"prepack": "pnpm build",
9494
"release": "release publish",
95-
"postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\""
95+
"postinstall": "node -e \"try{require('./config/scripts/postinstall')}catch(e){}\"",
96+
"knip": "knip"
9697
},
9798
"lint-staged": {
9899
"**/*.ts": [
@@ -167,10 +168,8 @@
167168
"@ossjs/release": "^0.8.1",
168169
"@playwright/test": "^1.48.0",
169170
"@types/express": "^4.17.21",
170-
"@types/fs-extra": "^11.0.4",
171-
"@types/glob": "^8.1.0",
172171
"@types/json-bigint": "^1.0.4",
173-
"@types/node": "18.x",
172+
"@types/node": "~18.19.28",
174173
"@typescript-eslint/eslint-plugin": "^8.8.1",
175174
"@typescript-eslint/parser": "^8.8.1",
176175
"@web/dev-server": "^0.4.6",
@@ -187,18 +186,17 @@
187186
"eslint-plugin-prettier": "^5.2.1",
188187
"express": "^5.0.0",
189188
"fastify": "^4.26.0",
190-
"fs-extra": "^11.2.0",
191189
"fs-teardown": "^0.3.0",
192190
"glob": "^11.0.0",
193191
"jsdom": "^25.0.1",
194192
"json-bigint": "^1.0.0",
193+
"knip": "^5.51.1",
195194
"lint-staged": "^15.2.10",
196195
"page-with": "^0.6.1",
197196
"prettier": "^3.4.2",
198197
"regenerator-runtime": "^0.14.1",
199198
"rimraf": "^6.0.1",
200199
"simple-git-hooks": "^2.9.0",
201-
"ts-node": "^10.9.2",
202200
"tsup": "^8.3.0",
203201
"typescript": "^5.5.2",
204202
"undici": "^6.20.0",

0 commit comments

Comments
 (0)