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

Function run

scripts/buildWebsite.js:222–235  ·  view source on GitHub ↗
(cmd, args, opts)

Source from the content-addressed store, hash-verified

220}
221
222function run(cmd, args, opts) {
223 return new Promise((resolve, reject) => {
224 let child = spawn(cmd, args, opts);
225 child.on('error', reject);
226 child.on('close', code => {
227 if (code !== 0) {
228 reject(new Error('Child process failed'));
229 return;
230 }
231
232 resolve();
233 });
234 });
235}

Callers 1

buildFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected