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

Function run

scripts/buildBranchAPI.js:276–289  ·  view source on GitHub ↗
(cmd, args, opts)

Source from the content-addressed store, hash-verified

274}
275
276function run(cmd, args, opts) {
277 return new Promise((resolve, reject) => {
278 let child = spawn(cmd, args, opts);
279 child.on('error', reject);
280 child.on('close', code => {
281 if (code !== 0) {
282 reject(new Error('Child process failed'));
283 return;
284 }
285
286 resolve();
287 });
288 });
289}

Callers 1

buildFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected