MCPcopy Index your code
hub / github.com/react/react / asyncExecuteCommand

Function asyncExecuteCommand

scripts/rollup/utils.js:29–39  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

27}
28
29function asyncExecuteCommand(command) {
30 return new Promise((resolve, reject) =>
31 exec(command, (error, stdout) => {
32 if (error) {
33 reject(error);
34 return;
35 }
36 resolve(stdout);
37 })
38 );
39}
40
41function asyncExtractTar(options) {
42 return new Promise((resolve, reject) =>

Callers 1

prepareNpmPackageFunction · 0.85

Calls 3

execFunction · 0.85
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected