From dd60371ebb1a7cf6ea7ea1ad0525f7255563af45 Mon Sep 17 00:00:00 2001 From: PedroBailaAndrade Date: Mon, 8 Jan 2024 14:53:29 +0000 Subject: [PATCH] test --- workspaces/cms-scripts/src/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/workspaces/cms-scripts/src/index.ts b/workspaces/cms-scripts/src/index.ts index 0a9c97ba3b..d5e47bf517 100644 --- a/workspaces/cms-scripts/src/index.ts +++ b/workspaces/cms-scripts/src/index.ts @@ -1,4 +1,4 @@ -import { existsSync, promises } from "fs"; +import { promises } from "fs"; import * as path from "path"; process.chdir(path.resolve(__dirname, "../../..")); @@ -60,10 +60,6 @@ const createAnnouncementDetails = async () => { const roadmapPosts: AnnouncementDetails[] = []; const filesInDir = await readdir(filesPath); - if (filesInDir.length === 0) { - return; - } - const jsonFilesInDir = filesInDir.filter((file) => file.endsWith(".json")); for (const fileName of jsonFilesInDir) { @@ -286,5 +282,4 @@ const redirects = await yaml("_data/settings/redirects.yml"); await write(`workspaces/website/redirects.json`, redirects); await createRoadmapDetails() -await createAnnouncementDetails() await createSharedData()