(path: string)
| 57 | } |
| 58 | |
| 59 | function basename(path: string): string { |
| 60 | const normalized = normalizePath(path) |
| 61 | const index = normalized.lastIndexOf('/') |
| 62 | const name = index === -1 ? normalized : normalized.slice(index + 1) |
| 63 | return name.replace(/\.(ya?ml)$/i, '') |
| 64 | } |
| 65 | |
| 66 | function stripRootDir(path: string, rootDir: string): string { |
| 67 | const normalized = normalizePath(path) |
no test coverage detected