chore(npm/check-node-modules): cope with no npm-shrinkwrap file

This commit is contained in:
Peter Bacon Darwin
2016-05-12 10:25:34 +01:00
parent f1f892d6c0
commit 6b92ff08cd
+1
View File
@@ -45,6 +45,7 @@ function checkNodeModules(purgeIfStale) {
}
function compareMarkerFiles(markerFilePath, cachedMarkerFilePath) {
if (!fs.existsSync(markerFilePath)) return false;
if (!fs.existsSync(cachedMarkerFilePath)) return false;
var opts = {encoding: 'utf-8'};