Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 03e5164

Browse files
chore(npm/check-node-modules): cope with no npm-shrinkwrap file
1 parent 3047964 commit 03e5164

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/npm/check-node-modules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function checkNodeModules(purgeIfStale) {
4545
}
4646

4747
function compareMarkerFiles(markerFilePath, cachedMarkerFilePath) {
48+
if (!fs.existsSync(markerFilePath)) return false;
4849
if (!fs.existsSync(cachedMarkerFilePath)) return false;
4950

5051
var opts = {encoding: 'utf-8'};

0 commit comments

Comments
 (0)