Skip to content

npm dev-dependency bumps can't install: Dependabot proposes half of a peer-coupled pair #306

Closed

Description

@scttfrdmn

What

Two of the 14 PRs Dependabot opened after #288 was fixed fail sdk-metrics — and not on a test. They fail at npm install, because npm enforces peer ranges and each PR moves one half of a pair that has to move together.

#298 — typescript 5.9.3 → 7.0.2:

npm error While resolving: @objectfs/[email protected]
npm error Found: [email protected]
npm error   dev typescript@"^7.0.2" from the root project
npm error Could not resolve dependency:
npm error peer typescript@">=4.3 <7" from [email protected]

#297 — @typescript-eslint/eslint-plugin 5.62.0 → 8.65.0:

npm error Found: @typescript-eslint/[email protected]
npm error   dev @typescript-eslint/parser@"^5.59.0" from the root project
npm error Could not resolve dependency:
npm error peer @typescript-eslint/parser@"^8.66.0" from @typescript-eslint/[email protected]

Neither is a bad bump. Both are the right target version proposed in an order that cannot install.

Why it happens here and not for Go

The gomod entry in .github/dependabot.yml has a groups: block — aws-sdk, production-dependencies, development-dependencies. Neither npm entry has one. Ungrouped, Dependabot opens one PR per package and has no way to know two of them are a set.

Note this only became visible now: before #288, the whole config was invalid and ignored, so Dependabot ran on its defaults and never proposed these at all.

Fix

groups: on the /sdks/javascript npm entry:

  • typescript-toolchain — typescript, ts-jest, jest, @types/jest
  • typescript-eslint — @typescript-eslint/*, eslint

That is the only form that resolves. It does not make these automatic — they are still major bumps, so dependabot-automerge.yml comments and waits for a human, which is correct for a TypeScript 5 → 7 jump.

/docs-platform was checked and does not have the same coupling: it has jest and typescript but no ts-jest, so nothing there declares a peer range on the TypeScript version.

Related but separate: vite

docs-platform has 3 open alerts against vite (one high), patched at 6.4.3. Two blockers, neither of which grouping fixes:

  1. No lockfile is committed, so Dependabot will not do it as a security update — verbatim: "can't update vulnerable dependencies for projects without a lockfile or pinned version requirement as the currently installed version of vite isn't known." That is docs-platform: no committed lockfile, so Dependabot cannot apply npm security updates #214.
  2. [email protected] depends on vite: ^5.4.14. So vite cannot go to 6.x while vitepress is on 1.x — the fix is a vitepress major, not a vite bump, and vitepress 2.x is the thing to evaluate. Worth noting on docs-platform: no committed lockfile, so Dependabot cannot apply npm security updates #214 so the lockfile work is not expected to close the alerts by itself.

Verification

The honest check is the next Dependabot run: the grouped PR should install. A test here would assert that groups: mentions particular package names, which is a restatement of the config rather than a check of it — the thing that can actually be wrong is the peer range, and only npm knows that. sdk-metrics running npm install on every PR is already the gate that caught this.

Activity

  1. added
    type: bug
    type: ci-cd
    priority: medium
    effort: xs
    area: ci-cd
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ci-cdeffort: xspriority: mediumtype: bugtype: ci-cd

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions