Add board compilation
This commit is contained in:
6
util/dirname.ts
Normal file
6
util/dirname.ts
Normal 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));
|
Reference in New Issue
Block a user