SpaceNinjaServer/src/helpers/pathHelper.ts
Sainan 3c1b621f3f
All checks were successful
Build / build (pull_request) Successful in 1m28s
add command line --configPath and --dev arguments
2025-06-21 00:06:30 +02:00

5 lines
175 B
TypeScript

import path from "path";
export const rootDir = path.join(__dirname, "../..");
export const repoDir = path.basename(rootDir) != "build" ? rootDir : path.join(rootDir, "..");