1.0.0 • Published 8 years ago
npm-list-problems-cli v1.0.0
npm-list-problems-cli
Introduction
Check if a directory has certain npm dependency errors. These errors can be seen when running the npm list command in a directory. However, it does not seem like there's a way to return a non-zero exit code for a subset of the different error types.
Filtering certain type of errors could lead to the ability to fail builds where certain npm dependency errors indicate that there are inconsistencies between the package.json and package-lock.json files.
Installation
npm install npm-list-problems-cli -g
Usage
npmlistproblems [--types] [--path]
- There are
6types of errors to filter by:EXTRANEOUS_DEPENDENCYMISSING_DEPENDENCYMISSING_PEER_DEPENDENCYUNMET_PEER_DEPENDENCYINVALID_DEPENDENCYDEPENDENCY_ERROR
- If no error types are specified, all
6errors are used for filtering - If no
pathis specified, the current directory is examined - If error types are specified, they should be
|separated - If a
pathis specified, it should be the relative path for another directory npmlistproblems --types="EXTRANEOUS_DEPENDENCY|MISSING_DEPENDENCY" --path="../some/other/directory- Find all extraneous and missing dependency errors for
../some/other/directory
- Find all extraneous and missing dependency errors for
1.0.0
8 years ago