(rawCwd: string | undefined)
| 68 | } |
| 69 | |
| 70 | function resolveCallerScopeRoot(rawCwd: string | undefined): string | undefined { |
| 71 | if (!rawCwd || rawCwd.trim().length === 0) return undefined; |
| 72 | const cwd = resolveExistingPath(rawCwd); |
| 73 | return findGitWorktreeRoot(cwd) ?? cwd; |
| 74 | } |
| 75 | |
| 76 | function resolveExistingPath(rawPath: string): string { |
| 77 | const resolved = path.resolve(rawPath); |
no test coverage detected
searching dependent graphs…