Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.strict()
.usage(helpString)
.alias("h", "help")
.version(false)
.option("audit", {
description: "Compare files changed with those cached",
type: "boolean"
}).argv;
const buildCommand = createBuildCommand(
argv["_"],
clearOutputFolder,
outputFolder
);
const cacheStorage = getCacheStorageProvider(
cacheStorageConfig,
internalCacheFolder
);
const hasher = new Hasher(
{ packageRoot, outputFolder },
getRawBuildCommand()
);
if (argv["audit"]) {
initializeWatcher(
packageRoot,
internalCacheFolder,
logFolder,
outputFolder,
hashGlobs