unused-package
Advanced tools
Comparing version 1.1.0 to 1.1.1
14
index.js
@@ -108,7 +108,13 @@ const directories = __dirname.split("/"); | ||
const packageData = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8")); | ||
try { | ||
const packageData = JSON.parse( | ||
fs.readFileSync(packageJsonPath, "utf-8") | ||
); | ||
return packageData.peerDependencies | ||
? !!packageData.peerDependencies[package] | ||
: false; | ||
return packageData.peerDependencies | ||
? !!packageData.peerDependencies[package] | ||
: false; | ||
} catch (error) { | ||
return false; | ||
} | ||
}); | ||
@@ -115,0 +121,0 @@ return !isPeerDependency; |
{ | ||
"name": "unused-package", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "unused-package is a dependency analysing tool which lets you know which packages are not being used or if package is devDependency but installed as normal dependency", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ # unused-package | ||
``` | ||
npm install unused-package | ||
npm install unused-package --save-dev | ||
``` | ||
@@ -17,3 +17,3 @@ | ||
``` | ||
yarn add unused-package | ||
yarn add --dev unused-package | ||
``` | ||
@@ -20,0 +20,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6234
108
0