(packageName, binPath)
| 31 | } |
| 32 | |
| 33 | function packageBinPath(packageName, binPath) { |
| 34 | return path.join(path.dirname(require.resolve(`${packageName}/package.json`)), binPath); |
| 35 | } |
| 36 | |
| 37 | function run(command, binPath, args) { |
| 38 | return new Promise((resolve, reject) => { |