Add board compilation

This commit is contained in:
dylan
2024-04-24 18:54:55 -07:00
parent e2d1b006fe
commit 4a6482100a
13 changed files with 488 additions and 43 deletions

6
util/dirname.ts Normal file
View File

@ -0,0 +1,6 @@
import { fileURLToPath } from "url";
/**
* Pass in `import.meta` to get the __dirname.
*/
export const getDirname = (importMeta: ImportMeta) => fileURLToPath(new URL('.', importMeta.url));