Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBailaAndrade committed Jan 8, 2024
1 parent 424b23b commit dd60371
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions workspaces/cms-scripts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { existsSync, promises } from "fs";
import { promises } from "fs";
import * as path from "path";

process.chdir(path.resolve(__dirname, "../../.."));
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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()

0 comments on commit dd60371

Please sign in to comment.