(parent: string, child: string)
| 733 | } |
| 734 | |
| 735 | function isPathInside(parent: string, child: string): boolean { |
| 736 | const relative = path.relative(parent, child) |
| 737 | return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative)) |
| 738 | } |
| 739 | |
| 740 | function packageSpecifier(packageName: string, subpath: string): string { |
| 741 | return subpath === "" ? packageName : `${packageName}/${subpath}` |
no outgoing calls
no test coverage detected