(rootDir: string, filename: string)
| 9 | |
| 10 | // rootDir and filename must be absolute paths (resolved) |
| 11 | export function relative(rootDir: string, filename: string): string { |
| 12 | return filename.startsWith(rootDir + path.sep) |
| 13 | ? filename.slice(rootDir.length + 1) |
| 14 | : path.relative(rootDir, filename); |
| 15 | } |
| 16 | |
| 17 | const INDIRECTION_FRAGMENT = `..${path.sep}`; |
| 18 |
no outgoing calls
no test coverage detected