Comparing version 0.1.5 to 0.1.6
16
index.js
#! /usr/bin/env node | ||
const yargs = require('yargs'); | ||
const chalk = require('chalk'); | ||
const cli = require('./src/cli'); | ||
@@ -20,4 +21,15 @@ const clean = require('./src/lib/clean'); | ||
// Clean npcheck-env directory on uncaughtException and SIGINT (aka Ctrl +C) | ||
process.on('uncaughtException', clean); | ||
// output error stack trace on uncaughtException and unhandledRejection | ||
process.on('uncaughtException', err => { | ||
console.log(chalk.red.bold(err.stack)); | ||
process.exit(1); | ||
}); | ||
process.on('unhandledRejection', err => { | ||
console.log(chalk.red.bold(err.stack)); | ||
process.exit(1); | ||
}); | ||
// clean-up hook before exiting the node.js process | ||
process.on('exit', clean); | ||
process.on('SIGINT', clean); |
{ | ||
"name": "npcheck", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A tool to run various checks on npm modules", | ||
@@ -24,7 +24,8 @@ "keywords": [], | ||
"scripts": { | ||
"start": "node .", | ||
"prepare": "husky install", | ||
"pretest": "eslint --ignore-path .gitignore", | ||
"lint:fix": "eslint . --fix", | ||
"test": "jest --no-color", | ||
"start": "node .", | ||
"lint:fix": "eslint . --fix" | ||
"coverage": "jest --coverage" | ||
}, | ||
@@ -42,2 +43,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.18.0", | ||
@@ -44,0 +46,0 @@ "eslint-config-semistandard": "^15.0.1", |
@@ -5,2 +5,5 @@ # npcheck | ||
![Node.js CI](https://github.com/nodeshift/npcheck/workflows/Node.js%20CI/badge.svg) | ||
[![Coverage Status](https://coveralls.io/repos/github/nodeshift/npcheck/badge.svg?branch=main)](https://coveralls.io/github/nodeshift/npcheck?branch=main) | ||
## Prerequisites | ||
@@ -7,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19416
428
91
10