(rootPath: string)
| 50 | } |
| 51 | |
| 52 | export function normalizeRootKey(rootPath: string): string { |
| 53 | let normalized = path.resolve(rootPath); |
| 54 | // Strip trailing separator |
| 55 | while (normalized.length > 1 && (normalized.endsWith('/') || normalized.endsWith('\\'))) { |
| 56 | normalized = normalized.slice(0, -1); |
| 57 | } |
| 58 | // Case-insensitive on Windows |
| 59 | if (process.platform === 'win32') { |
| 60 | normalized = normalized.toLowerCase(); |
| 61 | } |
| 62 | return normalized; |
| 63 | } |
| 64 | |
| 65 | const projects = new Map<string, ProjectState>(); |
| 66 |
no outgoing calls
no test coverage detected