( packageExports: unknown, subpath: string, expectedTarget: string )
| 710 | } |
| 711 | |
| 712 | function isPackageSubpathExported( |
| 713 | packageExports: unknown, |
| 714 | subpath: string, |
| 715 | expectedTarget: string |
| 716 | ): boolean { |
| 717 | const match = getPackageExportMatch(packageExports, subpath) |
| 718 | return match !== undefined && packageExportTargetMatches(match.value, match.star, expectedTarget) |
| 719 | } |
| 720 | |
| 721 | function isPathInside(parent: string, child: string): boolean { |
| 722 | const relative = path.relative(parent, child) |
no test coverage detected