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 43ee505 commit 8778c7dCopy full SHA for 8778c7d
scripts/update-issues.ts
@@ -1,4 +1,4 @@
1
-import { writeFile } from "node:fs/promises";
+import { mkdir, writeFile } from "node:fs/promises";
2
import { features } from "web-features";
3
import bcd from "@mdn/browser-compat-data" with { type: 'json' };
4
@@ -237,6 +237,8 @@ async function update() {
237
const ids = Array.from(manifest.keys()).sort();
238
const manifestJson = JSON.stringify(
239
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 });
242
await writeFile("out/web-features-signals.json", manifestJson);
243
console.log('Wrote web-features-signals.json');
244
0 commit comments