()
| 9 | const packageJSON = await getPackageJSON() |
| 10 | |
| 11 | async function getPackageJSON() { |
| 12 | const packageJSONPath = resolve('package.json') |
| 13 | |
| 14 | /** |
| 15 | * @type {Package} |
| 16 | */ |
| 17 | const contents = JSON.parse(await readFile(packageJSONPath, 'utf8')) |
| 18 | |
| 19 | return { |
| 20 | contents, |
| 21 | path: packageJSONPath, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | async function preparePackageJSON() { |
| 26 | const binPath = Object.values(packageJSON.contents.bin ?? {})[0] |
no test coverage detected