(command, args)
| 21 | const REGISTRY = 'https://registry.npmjs.org'; |
| 22 | |
| 23 | function run(command, args) { |
| 24 | const result = spawnSync(command, args, { cwd: ROOT_DIR, encoding: 'utf8', stdio: 'pipe' }); |
| 25 | if (result.status !== 0) { |
| 26 | throw new Error(`${command} ${args.join(' ')} failed: ${result.stderr || result.stdout}`); |
| 27 | } |
| 28 | return result.stdout; |
| 29 | } |
| 30 | |
| 31 | function parseArgs(argv) { |
| 32 | const options = { remote: 'origin' }; |
no outgoing calls
no test coverage detected