Type check scripts/

This commit is contained in:
Alex Gleason
2024-11-21 10:25:15 -06:00
parent e38392b269
commit ceddcce4cf
5 changed files with 8 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ if (import.meta.main) {
})
.then(async (blob) =>
await pngToIco(Buffer.from(await blob.arrayBuffer()))
.then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf))
.then(async (buf) => await Deno.writeFile('./public/favicon.ico', new Uint8Array(buf)))
);
} catch (e) {
die(1, `Error generating favicon from url ${image}: "${e}". Please check this or try again without --image.`);