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()