pokerogue/test/sprites/spritesUtils.ts
Sirz Benjie 408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00

11 lines
270 B
TypeScript

const fs = require("node:fs");
const path = require("node:path");
export function getAppRootDir() {
let currentDir = __dirname;
while (!fs.existsSync(path.join(currentDir, "package.json"))) {
currentDir = path.join(currentDir, "..");
}
return currentDir;
}