(pkg: Record<string, unknown>, kind: Kind)
| 126 | } |
| 127 | |
| 128 | function exportTarget(pkg: Record<string, unknown>, kind: Kind) { |
| 129 | const exports = pkg.exports |
| 130 | if (!isRecord(exports)) return |
| 131 | const value = exports[`./${kind}`] |
| 132 | const entry = exportValue(value) |
| 133 | if (!entry) return |
| 134 | return { |
| 135 | opts: exportOptions(value), |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | function hasMainTarget(pkg: Record<string, unknown>) { |
| 140 | const main = pkg.main |
no test coverage detected