We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfbcd8 commit 351978cCopy full SHA for 351978c
script/conditional-install
@@ -8,7 +8,7 @@ end
8
# Why not read node_modules/.package-lock.json? Because it's not the same.
9
hashfile = 'node_modules/.package-lock.json.hash'
10
current = Digest::SHA2.file('package-lock.json').hexdigest
11
-expected = File.read(hashfile) if File.exist?(hashfile)
+expected = File.read(hashfile) if File.file?(hashfile)
12
13
if expected != current
14
puts 'Running npm ci to regenerate node_modules.'
0 commit comments