(filePath)
| 90 | } |
| 91 | |
| 92 | function formatFilePath (filePath) { |
| 93 | const absolutePath = normalizeFilePath(filePath) |
| 94 | const relativePath = relative(process.cwd(), absolutePath) |
| 95 | |
| 96 | return relativePath.startsWith('..') ? absolutePath : relativePath |
| 97 | } |
| 98 | |
| 99 | function normalizeFilePath (filePath) { |
| 100 | return filePath.startsWith('file://') ? fileURLToPath(filePath) : filePath |
no test coverage detected
searching dependent graphs…