Skip to content

🛠 Repo: Bump nyc from 15 to 17 #5481

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Tooling Suggestion Checklist

Overview

Mocha has a devDependency right now on a 5-year-old version of nyc:

"nyc": "^15.1.0",

This isn't a problem on its own. nyc@15 works as-is. But it pulls in old dependencies that bloat our local node_modules size. For example, in #5482, we see it pulling in supports-color@5 inside some older @babel/* packages:

└─┬ [email protected]
  └─┬ [email protected]
    └─┬ @babel/[email protected]
      └─┬ @babel/[email protected]
        ├─┬ @babel/[email protected]
        │ └─┬ [email protected]
        │   └── [email protected]
        └─┬ [email protected]
          └── [email protected]

I think it'd be a good idea in general to bump it to the latest major version.

Additional Info

In theory it'd be nice to automatically upgrade all devDependencies. #5055 is blocked for now: #5055 (comment).

No relevant breaking changes, only minimum Node version now being 18: https://github.com/istanbuljs/nyc/blob/main/CHANGELOG.md

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: repository toolingconcerning ease of contributionstatus: in triagea maintainer should (re-)triage (review) this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions