Skip to content

chore: remove yargs override once c8 ships yargs v18 #643

Description

@RomiC

Context

A temporary "overrides": { "yargs": "^18.0.0" } was added to package.json in #616 to unblock c8 on Node 26.

The root cause is a c8 upstream bug — yargs@17.7.2 has "type": "module" but its ./yargs entrypoint uses require(), which Node 26's stable require()-of-ESM feature now properly rejects.

The upstream fix is tracked in:

Action

Once bcoe/c8#578 merges and publishes a new release:

  1. Update c8 in devDependencies to the new version
  2. Remove the "overrides" block from package.json
  3. Verify npm run test:coverage still passes on Node 22, 24 and 26

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxChanges relative to the Developer eXperience

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions