diff --git a/scripts/download-blog-posts.data.json.mjs b/scripts/download-blog-posts.data.json.mjs index 069ecc62..7c7681be 100644 --- a/scripts/download-blog-posts.data.json.mjs +++ b/scripts/download-blog-posts.data.json.mjs @@ -1,7 +1,6 @@ -import fs from "node:fs" import fetch from "node-fetch" +import fs from "node:fs" import path from "node:path" - import { fileURLToPath } from "url" const __dirname = path.dirname(fileURLToPath(import.meta.url)) @@ -29,4 +28,4 @@ async function fetchPosts() { ]) } -fetchPosts() +await fetchPosts()