Normalize to the stored path shape: forward slashes, '.' for the root.
(p: string)
| 254 | |
| 255 | /** Normalize to the stored path shape: forward slashes, '.' for the root. */ |
| 256 | function normalizeRel(p: string): string { |
| 257 | const n = path.normalize(p).replace(/\\/g, '/').replace(/\/+$/, ''); |
| 258 | return n === '' ? '.' : n; |
| 259 | } |
no test coverage detected