(p: string)
| 258 | */ |
| 259 | export function unsafeIndexRootReason(projectRoot: string): string | null { |
| 260 | const resolve = (p: string): string => { |
| 261 | try { |
| 262 | return fs.realpathSync(path.resolve(p)); |
| 263 | } catch { |
| 264 | return path.resolve(p); |
| 265 | } |
| 266 | }; |
| 267 | const resolved = resolve(projectRoot); |
| 268 | |
| 269 | // Filesystem root: `/` on POSIX, a drive root like `C:\` on Windows. |
no test coverage detected