(dir: string)
| 63 | } |
| 64 | |
| 65 | function normalizeRelativePath(dir: string): string { |
| 66 | const cleaned = dir |
| 67 | .replace(/\\/g, '/') |
| 68 | .replace(/^\.?\//, '') |
| 69 | .replace(/\/+$/, ''); |
| 70 | if (cleaned === '') { |
| 71 | return '.'; |
| 72 | } |
| 73 | return cleaned; |
| 74 | } |
| 75 | |
| 76 | function joinRelativePath(parent: string, child: string): string { |
| 77 | if (parent === '.' || parent === '') { |
no outgoing calls
no test coverage detected