Comparing version 0.1.3 to 0.1.4
14
index.js
#! /usr/bin/env node | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const yargs = require('yargs'); | ||
const cli = require('./src/cli'); | ||
const clean = require('./src/lib/clean'); | ||
@@ -22,8 +20,4 @@ const options = yargs | ||
// On uncaughtException we should clean the npcheck-env directory | ||
process.on('uncaughtException', () => { | ||
const envDirectory = path.resolve(process.cwd(), 'npcheck-env'); | ||
if (fs.existsSync(envDirectory)) { | ||
fs.rmdirSync(envDirectory, { recursive: true }); | ||
} | ||
}); | ||
// Clean npcheck-env directory on uncaughtException and SIGINT (aka Ctrl +C) | ||
process.on('uncaughtException', clean); | ||
process.on('SIGINT', clean); |
{ | ||
"name": "npcheck", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A tool to run various checks on npm modules", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
17204
16
406