Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initializeWatcher(
packageRoot,
internalCacheFolder,
logFolder,
outputFolder,
hashGlobs
);
}
await backfill(config, cacheStorage, buildCommand, hasher);
if (argv["audit"]) {
await closeWatcher();
}
} catch (err) {
logger.error(err);
process.exit(1);
}
}
.catch(err => {
if (process.env.NODE_ENV !== "test") {
logger.error(`Failed while running: "${parsedBuildCommand}"`);
}
throw err;
})
);
const put = async (hash: string) => {
try {
await cacheStorage.put(hash, outputFolder);
} catch (err) {
logger.error(
`Failed to persist the cache with the following error:\n\n${err}`
);
}
};