Skip to main content

yarn explain peer-requirements

Explain a set of peer requirements.

Usage

$ yarn explain peer-requirements <hash>

Examples

Explain the corresponding set of peer requirements for a hash :

List all sets of peer requirements :

Details

A set of peer requirements represents all peer requirements that a dependent must satisfy when providing a given peer request to a requester and its descendants.

When the hash argument is specified, this command prints a detailed explanation of all requirements of the set corresponding to the hash and whether they're satisfied or not.

When used without arguments, this command lists all sets of peer requirements and the corresponding hash that can be used to get detailed information about a given set.

Note: A hash is a six-letter p-prefixed code that can be obtained from peer dependency warnings or from the list of all peer requirements (yarn explain peer-requirements).