( outputRoot: string, relativePath: string, isMirrow: boolean )
| 337 | } |
| 338 | |
| 339 | function resolveOutputForRelative( |
| 340 | outputRoot: string, |
| 341 | relativePath: string, |
| 342 | isMirrow: boolean |
| 343 | ): string { |
| 344 | const relativeDir = path.dirname(relativePath); |
| 345 | const baseDir = |
| 346 | relativeDir === "." ? outputRoot : path.join(outputRoot, relativeDir); |
| 347 | const fileName = path.basename(relativePath); |
| 348 | return isMirrow ? toSvgPath(baseDir, fileName) : path.join(baseDir, fileName); |
| 349 | } |
| 350 | |
| 351 | function isWithinDepth( |
| 352 | relativePath: string, |
no test coverage detected