check-deps-versions
Advanced tools
Comparing version 0.2.1 to 0.2.2
10
index.js
@@ -20,2 +20,6 @@ const path = require('path'); | ||
packageJsonPath = path.resolve(specifiedPackageJsonLocation, 'package.json'); | ||
if (!fileExists(packageJsonPath)) { | ||
errorAndExit(`${packageJsonPath} doesn't exist`); | ||
} | ||
} else { | ||
@@ -25,6 +29,6 @@ const findNearestFile = require('find-nearest-file'); | ||
packageJsonPath = findNearestFile('package.json'); | ||
} | ||
if (!fileExists(packageJsonPath)) { | ||
errorAndExit(`${packageJsonPath} doesn't exist`); | ||
if (packageJsonPath === null) { | ||
errorAndExit('Couldn\'t find package.json'); | ||
} | ||
} | ||
@@ -31,0 +35,0 @@ |
{ | ||
"name": "check-deps-versions", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Check if dependencies specified in package.json are up to date with the latest available versions.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
6959
136