rebase generation

This commit is contained in:
MaKarin
2026-04-07 19:40:41 +03:00
parent 73ddb1a948
commit aab7bfa691
180 changed files with 15512 additions and 364 deletions

View File

@@ -0,0 +1,15 @@
/**
* Resolve the KIS-TOiR project root directory.
*
* Works from any module file in the tools/ directory by walking up
* relative to __dirname.
*/
import path from "node:path";
import { fileURLToPath } from "node:url";
export function getProjectRoot() {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// From tools/lib, go up two levels: ../.. = project root
return path.resolve(path.join(__dirname, "..", ".."));
}