get the relative path if the filePath is within the current working directory * otherwise return the absolute path
(cwd: string, filePath: string)
| 32 | * otherwise return the absolute path |
| 33 | */ |
| 34 | function getRelativePath(cwd: string, filePath: string) { |
| 35 | return filePath.startsWith(cwd) |
| 36 | ? path.join(".", path.relative(cwd, filePath)) |
| 37 | : filePath; |
| 38 | } |
| 39 | |
| 40 | function getFilePathsInSkillDirectory( |
| 41 | cwd: string, |
no outgoing calls
no test coverage detected