| 1 | #!/usr/bin/env node |
| 2 | 'use strict' |
| 3 | |
| 4 | const { loadNycConfig } = require('@istanbuljs/load-nyc-config') |
| 5 | |
| 6 | async function main () { |
| 7 | const [cwd, nycrcPath] = process.argv.slice(2) |
| 8 | |
| 9 | console.log(JSON.stringify(await loadNycConfig({ cwd, nycrcPath }))) |
| 10 | } |
| 11 | |
| 12 | main().catch(error => { |
| 13 | console.log(JSON.stringify({ 'load-nyc-config-sync-error': error.message })) |
| 14 | }) |