(importMetaUrl)
| 3 | import { fileURLToPath } from 'url' |
| 4 | |
| 5 | export function getDirname(importMetaUrl) { |
| 6 | const __filename = fileURLToPath(importMetaUrl) |
| 7 | return path.dirname(__filename) |
| 8 | } |
| 9 | |
| 10 | export function getProjectRoot(currentDir) { |
| 11 | let dir = currentDir |
no outgoing calls
no test coverage detected