(relativePath: string)
| 6 | } |
| 7 | |
| 8 | function escapesProject(relativePath: string): boolean { |
| 9 | return ( |
| 10 | relativePath === '..' || |
| 11 | relativePath.startsWith(`..${path.sep}`) || |
| 12 | path.isAbsolute(relativePath) |
| 13 | ) |
| 14 | } |
| 15 | |
| 16 | export function resolveFilePathWithinProject( |
| 17 | projectRoot: string, |
no outgoing calls
no test coverage detected