npm-package-json-lint
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -14,2 +14,6 @@ # Change Log | ||
## [2.1.1] - 2017-04-10 | ||
### Fixed | ||
- CLI so process exit code remains 0 if only warnings are detected | ||
## [2.1.0] - 2017-04-09 | ||
@@ -16,0 +20,0 @@ ### Changed |
{ | ||
"name": "npm-package-json-lint", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "CLI app for linting package.json files.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -51,2 +51,3 @@ # npm-package-json-lint | ||
| pjl-cli --rules-file <file path> | -c | File path of .npmpackagejsonlintrc | | ||
| pjl-cli --rule-severity <rule severity> | -s | "error" or "warning". Defaults to "error" | | ||
| pjl-cli --ignore-warnings | -w | Ignore warnings | | ||
@@ -94,3 +95,3 @@ | ||
## Migrating from v10.x.x to 2.x.x | ||
## Migrating from v1.x.x to 2.x.x | ||
@@ -97,0 +98,0 @@ Please see the [migration guide](https://github.com/tclindner/npm-package-json-lint/wiki/migrating-from-v1-to-v2). |
@@ -97,6 +97,7 @@ #!/usr/bin/env node | ||
if (issues.length > noIssues) { | ||
if (issues.length > noIssues && issueType === 'errors') { | ||
exitCode = issuesDetectedErrorCode; | ||
reporter.write(output[issueType], issueType); | ||
} | ||
reporter.write(output[issueType], issueType); | ||
} | ||
@@ -103,0 +104,0 @@ |
211021
118