(projectDir, args)
| 426 | } |
| 427 | |
| 428 | _runNpmScript(projectDir, args) { |
| 429 | return new Promise((resolve, reject) => { |
| 430 | this.spawnCommand('npm', args, { |
| 431 | // Disable stdout |
| 432 | stdio: [process.stdin, 'ignore', process.stderr], |
| 433 | cwd: projectDir, |
| 434 | }).on('close', code => { |
| 435 | if (code === 0) resolve(); |
| 436 | else reject(new Error('npm exit code: ' + code)); |
| 437 | }); |
| 438 | }); |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * Check if the generator should exit |
no test coverage detected