diff --git a/src/index.js b/src/index.js index 17aab40..71965cd 100644 --- a/src/index.js +++ b/src/index.js @@ -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'); } -} \ No newline at end of file +} + +writeFileSync(`${distDir}/modules.json`, JSON.stringify(moduleJson)); \ No newline at end of file