(p: string)
| 208 | } |
| 209 | |
| 210 | export function normalizePath(p: string): string { |
| 211 | if (process.platform !== "win32") return p |
| 212 | const resolved = pathResolve(windowsPath(p)) |
| 213 | try { |
| 214 | return realpathSync.native(resolved) |
| 215 | } catch { |
| 216 | return resolved |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | export function normalizePathPattern(p: string): string { |
| 221 | if (process.platform !== "win32") return p |
no test coverage detected