(command, dir)
| 114 | } |
| 115 | |
| 116 | function runsSuccessfully(command, dir) { |
| 117 | return new Promise((resolve) => { |
| 118 | cp.exec(command, { |
| 119 | cwd: dir, |
| 120 | }, (error, stdout, stderr) => { |
| 121 | if (error) { |
| 122 | console.log(stdout); |
| 123 | console.error(error); |
| 124 | console.error(stderr); |
| 125 | } |
| 126 | resolve(error); |
| 127 | }); |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | function installDeps() { |
| 132 | return new Promise((resolve, reject) => { |