(cmd, count = 0)
| 109 | } |
| 110 | |
| 111 | function runCommand(cmd, count = 0) { |
| 112 | try { |
| 113 | execSync(cmd); |
| 114 | } catch (error) { |
| 115 | if (count > 3) { |
| 116 | console.log(error, cmd, 'try', count); |
| 117 | return; |
| 118 | } |
| 119 | runCommand(cmd, count + 1); |
| 120 | } |
| 121 | console.log('success', cmd, 'try', count); |
| 122 | } |
| 123 | |
| 124 | Promise.all(promises).then(() => { |
| 125 | components.forEach(componentName => { |