Skip to content

Commit 4a571ae

Browse files
committed
chore(licenses): read dependencies directly from lockfiles (#9540)
Spawning Yarn and npm makes the license check pay their startup and dependency-tree construction costs on every lint run. Reading Yarn, npm, and Bun lockfiles directly reduced the representative end-to-end check from 285.8 ms to 32.1 ms.
1 parent f26e0e0 commit 4a571ae

4 files changed

Lines changed: 766 additions & 137 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
"@types/node": "^18.19.106",
200200
"@types/sinon": "^22.0.0",
201201
"@vercel/nft": "^1.10.2",
202+
"@yarnpkg/lockfile": "^1.1.0",
202203
"axios": "^1.18.1",
203204
"benchmark": "^2.1.4",
204205
"body-parser": "^2.3.0",
@@ -221,6 +222,7 @@
221222
"husky": "^9.1.7",
222223
"istanbul-lib-report": "^3.0.0",
223224
"istanbul-reports": "^3.0.2",
225+
"jsonc-parser": "^3.3.1",
224226
"jszip": "^3.10.1",
225227
"minimatch": "^10.2.5",
226228
"mocha": "^11.7.6",

0 commit comments

Comments
 (0)