Skip to content

Commit d8c0f88

Browse files
committed
fix: override for c8 to use yargs@^18 for Node 26
To work around a crash on Node 25/26 (<nodejs/node#62083>) caused by an extensionless `./yargs` file in yargs@17 (<nodejs/node#62083>) which started being interpreted as `type: "module"` in Node.js 25.7 due to <nodejs/node#61600>, which was reverted by <nodejs/node#62083> for Node.js 25, but retained for Node.js 26. Work around the issue by overriding the c8 yargs dependency to use yargs@^18. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
1 parent 3ff0048 commit d8c0f88

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
"rimraf": "^6.0.0",
7272
"stream-compare": "^3.0.0"
7373
},
74+
"overrides": {
75+
"c8": {
76+
"yargs": "^18.0.0"
77+
}
78+
},
7479
"engines": {
7580
"node": "20 || >=22",
7681
"npm": ">=1.3.7"

0 commit comments

Comments
 (0)