From 8c626748d3ec289a74ad3165856c48f6b69d6b18 Mon Sep 17 00:00:00 2001 From: dhrumit parmar Date: Mon, 24 Jun 2024 11:57:15 +0530 Subject: [PATCH] Fixing scraper-dry-run failing (Genrate markdown files) --- scripts/generateNewContributors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generateNewContributors.js b/scripts/generateNewContributors.js index 4a2709be..2f31597a 100644 --- a/scripts/generateNewContributors.js +++ b/scripts/generateNewContributors.js @@ -22,11 +22,11 @@ const basePath = join(process.env.DATA_REPO || process.cwd()); function getNewContributors() { let newContributors = new Set(); - fs.readdirSync(join(basePath, "data/github")).forEach((file) => { + fs.readdirSync(join(basePath, "data-repo/data/github")).forEach((file) => { newContributors.add(file.split(".")[0]); }); - fs.readdirSync(join(basePath, "contributors")).forEach((file) => { + fs.readdirSync(join(basePath, "data-repo/contributors")).forEach((file) => { newContributors.delete(file.split(".")[0]); });