From 1a2a0e454c9d6cf79ac917bb13f0de2f11e2df56 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 23 May 2021 14:22:57 +0100 Subject: [PATCH] [Index] Add null checking for modules in repo JSON out --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 43a666b..d420c6c 100644 --- a/src/index.js +++ b/src/index.js @@ -231,6 +231,8 @@ for (const parentRepo of ModuleRepos) { } } + moduleJson.modules = moduleJson.modules.filter((x) => x !== null); + writeFileSync(repoJsonPath, JSON.stringify(moduleJson)); oldTotalModulesJson = oldTotalModulesJson.concat(moduleJson.modules);