Builds all targets in parallel.
(targets)
| 49 | |
| 50 | /** Builds all targets in parallel. */ |
| 51 | function buildTargets(targets) { |
| 52 | process.stdout.write('Building all symbol extractor targets...'); |
| 53 | const commandResult = spawnSync('pnpm', ['--silent', 'bazel', 'build', targets.join(' ')], { |
| 54 | encoding: 'utf8', |
| 55 | shell: true, |
| 56 | }); |
| 57 | if (commandResult.status) { |
| 58 | console.error(commandResult.stdout || commandResult.stderr); |
| 59 | } else { |
| 60 | process.stdout.clearLine(); |
| 61 | process.stdout.cursorTo(0); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** Run the provided bazel commands on each provided target individually. */ |
| 66 | function runBazelCommandOnTargets(command, targets, present) { |
no test coverage detected
searching dependent graphs…