Resolve symlinks where possible so tmp/realpath quirks don't break equality.
(p: string)
| 253 | |
| 254 | /** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */ |
| 255 | function realpath(p: string): string { |
| 256 | try { |
| 257 | return fs.realpathSync(path.resolve(p)); |
| 258 | } catch { |
| 259 | return path.resolve(p); |
| 260 | } |
| 261 | } |
no test coverage detected