(command, opt, ignoreCode)
| 17 | const fs = require('fs'); |
| 18 | |
| 19 | function exec(command, opt, ignoreCode) { |
| 20 | const res = shell.exec(command, opt); |
| 21 | if (!ignoreCode && res.code !== 0) { |
| 22 | shell.echo('command', command, 'returned code', res.code); |
| 23 | process.exit(1); |
| 24 | } |
| 25 | return res; |
| 26 | } |
| 27 | |
| 28 | // Construct a dependency graph keyed by dependency package. |
| 29 | // Example: |
no outgoing calls
no test coverage detected
searching dependent graphs…