Compute hash of compiled queries

This commit is contained in:
Marco Gario
2020-12-09 21:29:25 +01:00
parent 3478b5fea1
commit a59b78de00
+7 -2
View File
@@ -287,8 +287,13 @@ async function compileQueries(
}
}
// Compute hash
const hash = "abc";
return hash;
const globHash = require("glob-hash");
const finalHash = await globHash({
include: [`${config.tempDir}/**/.cache/data`],
files: true,
});
logger.info(finalHash);
return finalHash;
}
void runWrapper();