Skip to content

Consumer install resolves passes with the peer declaration deleted #35

Backlog

Description

@TylerVigario

Consumer install resolves is meant to fail when package.json stops declaring conventional-changelog-conventionalcommits as a peer. The comment above its install says so: "drop it and the preset never arrives, ! stops parsing, and the cases below fail."

It does not fail. With peerDependencies deleted from package.json, the suite passes, 8 of 8, on main before #34 and after it.

The preset arrives anyway. @commitlint/cli 21 depends on @commitlint/config-conventional, which depends on the preset, and npm hoists it into the scratch project's node_modules, where extends finds it:

├─┬ @commitlint/cli@21.2.4
│ └─┬ @commitlint/config-conventional@21.2.4
│   └── conventional-changelog-conventionalcommits@10.4.1 deduped

So nothing checks the peer declaration. If it is dropped, a consumer whose tree does not already hold the preset loses ! parsing, and CI stays green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Eky1CPt1rz6BWLAqWVNmU9

Activity

  1. added
    bug
    on Dec 1, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions