(path: string)
| 22 | } |
| 23 | |
| 24 | export function pathToName(path: string) { |
| 25 | return toValidPackageName(basename(formatTargetDir(resolve(path)))) |
| 26 | } |
| 27 | export function formatTargetDir(targetDir: string) { |
| 28 | return targetDir.trim().replace(/[/\\]+$/g, '') |
| 29 | } |
no test coverage detected
searching dependent graphs…