MCPcopy Index your code
hub / github.com/remix-run/react-router / getRootDir

Function getRootDir

scripts/utils/process.ts:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 * Works whether called directly or via node --eval.
7 */
8export function getRootDir(): string {
9 // import.meta.dirname is the directory containing this file (scripts/utils/)
10 // Go up two levels to get the repo root
11 if (import.meta.dirname) {
12 return path.join(import.meta.dirname, "..", "..");
13 }
14 // Fallback for environments where import.meta.dirname isn't available
15 return process.cwd();
16}
17
18export function logAndExec(args: string[], captureOutput?: boolean): string;
19export function logAndExec(command: string, captureOutput?: boolean): string;

Callers 4

version.tsFile · 0.90
updateChangelogFunction · 0.90
updateTableOfContentsFunction · 0.90
publish.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…