MCPcopy Index your code
hub / github.com/adobe/react-spectrum / run

Function run

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

Source from the content-addressed store, hash-verified

246}
247
248function run(cmd, args, opts) {
249 return new Promise((resolve, reject) => {
250 let child = spawn(cmd, args, opts);
251 child.on('error', reject);
252 child.on('close', code => {
253 if (code !== 0) {
254 reject(new Error('Child process failed'));
255 return;
256 }
257
258 resolve();
259 });
260 });
261}

Callers 1

buildFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected