(pkgDir: string)
| 61 | }; |
| 62 | |
| 63 | const findTarball = (pkgDir: string): string | null => { |
| 64 | const tgz = readdirSync(pkgDir).find((entry) => entry.endsWith(".tgz")); |
| 65 | return tgz ? join(pkgDir, tgz) : null; |
| 66 | }; |
| 67 | |
| 68 | const subpathsToTest = (pkg: PackageJson): readonly string[] => Object.keys(pkg.exports ?? {}); |
| 69 |