import * as url from 'node:url'; const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); export const dir = __dirname;