( packageExports: unknown, subpath: string, expectedTarget: string )
| 724 | } |
| 725 | |
| 726 | function isPackageSubpathExported( |
| 727 | packageExports: unknown, |
| 728 | subpath: string, |
| 729 | expectedTarget: string |
| 730 | ): boolean { |
| 731 | const match = getPackageExportMatch(packageExports, subpath) |
| 732 | return match !== undefined && packageExportTargetMatches(match.value, match.star, expectedTarget) |
| 733 | } |
| 734 | |
| 735 | function isPathInside(parent: string, child: string): boolean { |
| 736 | const relative = path.relative(parent, child) |
no test coverage detected