diff --git a/lib/main.js b/lib/main.js index 215ca49..0682014 100644 --- a/lib/main.js +++ b/lib/main.js @@ -53,6 +53,11 @@ const watchFile = ({ if (isHashOnly) { console.log('Updating hash only because --hash-only is true.') + try { + fs.writeFileSync(packageHashPath, recentDigest) // write to hash to file for future use + } catch (error) { + console.log(error) + } return true }