mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
* Standardize filenames to kebab-case Co-authored-by: pymilkmaiden <cassiopeiamahler56@gmail.com> * Move script outside of public folder * Move update_exp_sprites to scripts * Add ls-lint to lint file and directory names * Update lefthook.yml to skip merge / rebase on all pre-commit commands --------- Co-authored-by: pymilkmaiden <cassiopeiamahler56@gmail.com>
11 lines
270 B
TypeScript
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;
|
|
}
|