(projectRoot, relativePath, reason)
| 62 | } |
| 63 | |
| 64 | function source(projectRoot, relativePath, reason) { |
| 65 | return { path: relativePath.replace(/\\/g, '/'), reason }; |
| 66 | } |
| 67 | |
| 68 | function availableSources(projectRoot, candidates) { |
| 69 | return candidates.filter((entry) => exists(projectRoot, entry.path)); |