From d4b89892eb1a8bca3b47e87249d9dc25e8fe0c88 Mon Sep 17 00:00:00 2001 From: Oj Date: Sat, 23 Jan 2021 10:47:15 +0000 Subject: [PATCH] Write dist/modules.json with module JSON data at the end --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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