({ cwd, output, pkgMain, pkgName })
| 224 | } |
| 225 | |
| 226 | async function getOutput({ cwd, output, pkgMain, pkgName }) { |
| 227 | let main = resolve(cwd, output || pkgMain || 'dist'); |
| 228 | if (!main.match(/\.[a-z]+$/) || (await isDir(main))) { |
| 229 | main = resolve(main, `${removeScope(pkgName)}.js`); |
| 230 | } |
| 231 | return main; |
| 232 | } |
| 233 | |
| 234 | function getDeclarationDir({ options, pkg }) { |
| 235 | const { cwd, output } = options; |
no test coverage detected
searching dependent graphs…