Skip to content

Commit 2ccc9c0

Browse files
build(deps): override yargs to ^18 so c8 runs on current Node
Problem: c8 pulls yargs 17.7.2, whose extensionless ./yargs file crashes under the Node 22.20+/24/26 module-loader changes (require is not defined in ES module scope), reddening the `node` CI leg. Goal: keep the existing c8 coverage setup working on current Node without pulling in the native-coverage tooling change. Changes: - add npm overrides forcing yargs to ^18.0.0 (only c8 consumes it)
1 parent 516a2b3 commit 2ccc9c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
],
6767
"license": "MIT",
6868
"name": "mdast-util-from-markdown",
69+
"overrides": {
70+
"yargs": "^18.0.0"
71+
},
6972
"prettier": {
7073
"bracketSpacing": false,
7174
"semi": false,

0 commit comments

Comments
 (0)