migrating to jsr cleanup-flags.js

This commit is contained in:
niclaz 2024-09-09 00:31:17 +02:00 committed by GitHub
parent f2d76b0502
commit bd8fe34f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
import { join } from "https://deno.land/std@0.216.0/path/join.ts"; import { join } from "jsr:@std/path@0.224.0";
const src = JSON.parse(await Deno.readTextFile("./src/core.json")); const src = JSON.parse(await Deno.readTextFile("./src/core.json"));
const usedFlags = [...new Set(src.events.map((e) => e.country + ".svg"))]; const usedFlags = [...new Set(src.events.map((e) => e.country + ".svg"))];