(...segments: string[])
| 2 | import { fileURLToPath } from 'url' |
| 3 | |
| 4 | export function resolveCliPath(...segments: string[]): string { |
| 5 | const moduleDir = path.dirname(fileURLToPath(import.meta.url)) |
| 6 | const packageRoot = path.basename(moduleDir) === 'dist' ? path.dirname(moduleDir) : path.resolve(moduleDir, '..') |
| 7 | return path.resolve(packageRoot, ...segments) |
| 8 | } |
no outgoing calls
no test coverage detected