From 1e6155c4acdd72f4e06ce94d90f6e36b8151aa0e Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Mon, 6 May 2024 15:08:06 +0300 Subject: [PATCH] fixing error with file creation --- workspaces/cms-scripts/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/workspaces/cms-scripts/src/index.ts b/workspaces/cms-scripts/src/index.ts index 5df2705c70..a9ef0708ec 100644 --- a/workspaces/cms-scripts/src/index.ts +++ b/workspaces/cms-scripts/src/index.ts @@ -347,6 +347,7 @@ const extractTags = (projects: Project[]): TagObject[] => { const slugifyDApps = slugifyTags(dAppsData.content); const categories = extractTags(dAppsData.content); +await fs.mkdir("public/data/starknet-db-projects-dapps", { recursive: true }); await write( `public/data/starknet-db-projects-dapps/starknet-db-projects-dapps.json`, { list: slugifyDApps, categories }