(target: string)
| 94 | } |
| 95 | |
| 96 | function readJson<T>(target: string): T | undefined { |
| 97 | try { |
| 98 | const raw = fs.readFileSync(target, "utf8") |
| 99 | return JSON.parse(raw) as T |
| 100 | } catch { |
| 101 | return undefined |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | function pathsOverlap(a: string, b: string): boolean { |
| 106 | return isWithin(a, b) || isWithin(b, a) |
no outgoing calls
no test coverage detected