We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c043654 commit bfd7d41Copy full SHA for bfd7d41
scripts/download-blog-posts.data.json.mjs
@@ -1,7 +1,6 @@
1
-import fs from "node:fs"
2
import fetch from "node-fetch"
+import fs from "node:fs"
3
import path from "node:path"
4
-
5
import { fileURLToPath } from "url"
6
7
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -29,4 +28,4 @@ async function fetchPosts() {
29
28
])
30
}
31
32
-fetchPosts()
+await fetchPosts()
0 commit comments