Write dist/modules.json with module JSON data at the end

This commit is contained in:
Ducko 2021-01-23 10:47:15 +00:00
parent 54fd99c9eb
commit d4b89892eb

View file

@ -21,6 +21,7 @@ const resetDir = (dir) => {
};
resetDir(clonesDir);
resetDir(distDir);
resetDir(modulesDir);
@ -91,4 +92,6 @@ for (const repo of ModuleRepos) {
if (lastHash !== commitHash) {
console.log('[Warning] Commit hash in modules does not match latest commit in repo');
}
}
}
writeFileSync(`${distDir}/modules.json`, JSON.stringify(moduleJson));