Handle missing .cache directory
Some checks failed
Build and copy to prod / build-and-copy (push) Failing after 3m38s

This commit is contained in:
Lewis Dale 2024-10-18 19:44:37 +01:00
parent 2c297a0298
commit 3b39d8d85f

View File

@ -52,6 +52,9 @@ const cachedContent = () => {
}
const storeCache = (content = []) => {
if (!fs.existsSync('.cache')) {
fs.mkdirSync('.cache');
}
fs.writeFileSync(cacheFile, JSON.stringify(content));
}