Skip to content

Commit 0eccc1d

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 a42db2e commit 0eccc1d

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
@@ -64,6 +64,11 @@
6464
"nodecat": "^2.0.0",
6565
"rimraf": "^6.1.2"
6666
},
67+
"overrides": {
68+
"c8": {
69+
"yargs": "^18.0.0"
70+
}
71+
},
6772
"engines": {
6873
"node": "20 || >=22",
6974
"npm": ">=1.3.7"

0 commit comments

Comments
 (0)