mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
Write dist/modules.json with module JSON data at the end
This commit is contained in:
parent
54fd99c9eb
commit
d4b89892eb
1 changed files with 4 additions and 1 deletions
|
@ -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));
|
Loading…
Reference in a new issue