(basePath?: string)
| 73 | } |
| 74 | |
| 75 | function getPathNormalizer(basePath?: string) { |
| 76 | // normalize source paths by removing the base path and always using "/" as a separator |
| 77 | return (sourcePath: string) => { |
| 78 | sourcePath = basePath ? path.relative(basePath, sourcePath) : sourcePath; |
| 79 | return sourcePath.split(path.sep).join('/'); |
| 80 | }; |
| 81 | } |
no test coverage detected
searching dependent graphs…