Skip to content

Commit

Permalink
feat: add validation success console message (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolatovumar committed Mar 31, 2020
1 parent c311c44 commit 3ff6eb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lockfile-lint/bin/lockfile-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,8 @@ debug(`total validator successes: ${validatorSuccesses}`)
if (validatorFailures !== 0) {
console.error('error: command failed with exit code 1', '\n')
process.exit(1)
} else {
const GREEN = '\x1b[32m'
const RESET = '\x1b[0m'
console.info(GREEN, '👍 No issues detected', '\n', RESET)
}

0 comments on commit 3ff6eb8

Please sign in to comment.