hey look a thing

This commit is contained in:
ewin 2025-03-10 00:02:54 -04:00
commit dac0a80d47
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc
12 changed files with 825 additions and 0 deletions

14
build.mts Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env node
import {glob, writeFile} from 'node:fs/promises';
for await (const input of glob('./**/*.json.{js,mjs,ts,mts}')) {
(async () => {
const m = await import(`./${input}`);
await writeFile(
input.replace(/\.json\..*$/, '.json'),
JSON.stringify(m.default, null, '\t'),
{encoding: 'utf-8'},
);
})();
}