MCPcopy Create free account
hub / github.com/adobe/react-spectrum / runCommand

Function runCommand

scripts/merge-spectrum-css.js:111–122  ·  view source on GitHub ↗
(cmd, count = 0)

Source from the content-addressed store, hash-verified

109}
110
111function 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
124Promise.all(promises).then(() => {
125 components.forEach(componentName => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected