(parent: string, child: string)
| 719 | } |
| 720 | |
| 721 | function isPathInside(parent: string, child: string): boolean { |
| 722 | const relative = path.relative(parent, child) |
| 723 | return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative)) |
| 724 | } |
| 725 | |
| 726 | function packageSpecifier(packageName: string, subpath: string): string { |
| 727 | return subpath === "" ? packageName : `${packageName}/${subpath}` |
no outgoing calls
no test coverage detected