()
| 6 | * Works whether called directly or via node --eval. |
| 7 | */ |
| 8 | export 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 | |
| 18 | export function logAndExec(args: string[], captureOutput?: boolean): string; |
| 19 | export function logAndExec(command: string, captureOutput?: boolean): string; |
no outgoing calls
no test coverage detected
searching dependent graphs…