(relativePath: string, prefixes: string[])
| 13 | } |
| 14 | |
| 15 | export function configEntryNameFromPath(relativePath: string, prefixes: string[]) { |
| 16 | const candidate = stripPrefix(relativePath, prefixes) ?? path.basename(relativePath) |
| 17 | const ext = path.extname(candidate) |
| 18 | return ext.length ? candidate.slice(0, -ext.length) : candidate |
| 19 | } |
no test coverage detected