(filePath: string)
| 27 | // 项目根目录 |
| 28 | export const ProjectRootPath = getProjectRoot(); |
| 29 | export function getRelativePath(filePath: string): string { |
| 30 | if (ProjectRootPath) { |
| 31 | return filePath.replace(`${ProjectRootPath}/`, ''); |
| 32 | } |
| 33 | return filePath; |
| 34 | } |
| 35 | |
| 36 | // 根据用户配置返回绝对路径或者相对路径 |
| 37 | export function getRelativeOrAbsolutePath( |
no outgoing calls
no test coverage detected