(filePath: string)
| 552 | } |
| 553 | |
| 554 | export function pathToFileUrl(filePath: string): string { |
| 555 | const absolutePath = path.resolve(filePath); |
| 556 | return `file://${encodeURIComponent(absolutePath).replace(/%2F/g, "/")}`; |
| 557 | } |
| 558 | |
| 559 | /** |
| 560 | * Check if `dir` is an ancestor of `filePath` using path.relative, |
no outgoing calls
no test coverage detected
searching dependent graphs…