Skip to content

Commit 8778c7d

Browse files
authored
Update update-issues.ts
1 parent 43ee505 commit 8778c7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/update-issues.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { writeFile } from "node:fs/promises";
1+
import { mkdir, writeFile } from "node:fs/promises";
22
import { features } from "web-features";
33
import bcd from "@mdn/browser-compat-data" with { type: 'json' };
44

@@ -237,6 +237,8 @@ async function update() {
237237
const ids = Array.from(manifest.keys()).sort();
238238
const manifestJson = JSON.stringify(
239239
Object.fromEntries(ids.map((id) => [id, manifest.get(id)])));
240+
// Note: Uses recursive so that it doesn't fail if out/ exists.
241+
await mkdir("out", { recursive: true });
240242
await writeFile("out/web-features-signals.json", manifestJson);
241243
console.log('Wrote web-features-signals.json');
242244

0 commit comments

Comments
 (0)