(root: string, target: string)
| 188 | } |
| 189 | |
| 190 | const isWithinDir = (root: string, target: string): boolean => { |
| 191 | const rel = relative(root, target) |
| 192 | return ( |
| 193 | rel === "" || |
| 194 | (rel !== ".." && |
| 195 | !rel.startsWith(`..${sep}`) && |
| 196 | !rel.startsWith("../") && |
| 197 | !isAbsolute(rel)) |
| 198 | ) |
| 199 | } |
| 200 | |
| 201 | const resolveSafeSkillDir = ( |
| 202 | projectRoot: string, |
no outgoing calls
no test coverage detected