UNPKG

@eggjs/cluster

Version:

cluster manager for egg

11 lines (9 loc) 277 B
import path from "node:path"; import { fileURLToPath } from "node:url"; //#region src/dirname.ts function getSrcDirname() { if (typeof __dirname !== "undefined") return __dirname; return path.dirname(fileURLToPath(import.meta.url)); } //#endregion export { getSrcDirname };