mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
* move test folder * Update vitest files * rename test/utils to test/testUtils * Remove stray utils/gameManager Got put back from a rebase
11 lines
261 B
TypeScript
11 lines
261 B
TypeScript
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
export function getAppRootDir () {
|
|
let currentDir = __dirname;
|
|
while (!fs.existsSync(path.join(currentDir, "package.json"))) {
|
|
currentDir = path.join(currentDir, "..");
|
|
}
|
|
return currentDir;
|
|
}
|