Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

exitcode != 0 on outdated dependencies (npm outdated) #5999

@seriousManual

Description

@seriousManual

this a proposal for a non zero exit value for npm outdated.

if dependencies are found that don't match the specification from the package.json, either if they are wrong (red) or outdated (yellow) the command should return a value that is not zero.

this feature could be utilized to invalidate a build if dependencies are not up to date any more.

by default the return value should be zero, via a cli parameter the level should be configurable. e.g. return non zero if there are errors (red) or non zero if there are warnings.

if this proposal finds acceptance i'll be happy to devise a pull request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions