Skip to content

Peer dependency warnings for @types/node #3007

Closed
@jrolfs

Description

@jrolfs

Depending on @commitlint/prompt or @commitlint/cli results in peer dependency warnings because the @types/node peer dependency of cosmiconfig-typescript-loader is not satisfied in @commitlint/load

Depending on @commitlint/prompt or @commitlint/cli should not result in any peer dependency warnings.

Depending on @commitlint/prompt or @commitlint/cli results in peer dependency warnings.

peer-dependency-warning

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Either expose @types/node as a peer dependency of @commitlint/load and then of @commitlint/cli and @commitlint/prompt, or add @types/node as a dependency of @commitlint/load.

I'd be happy to open a pull request for this, but am curious if there's a preference as to how we resolve this (see above).

Steps to Reproduce (for bugs)

  1. yarn init
  2. yarn add @commitlint/cli

reproduce

Context

Consolidate all JavaScript tooling into a single package https://github.com/hoverinc/hover-javascript/

Your Environment

Executable Version
commitlint --version 16.1.0
git --version 1.33.0
node --version 16.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions