MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / findExistingPath

Function findExistingPath

scripts/build-harmony-har.js:373–381  ·  view source on GitHub ↗
(candidates)

Source from the content-addressed store, hash-verified

371}
372
373function findExistingPath(candidates) {
374 for (const candidate of candidates) {
375 if (candidate && fs.existsSync(candidate)) {
376 return candidate;
377 }
378 }
379
380 return null;
381}
382
383function runCommand(command, commandArgs, options) {
384 const { cwd, env, label } = options;

Callers 2

buildHarFunction · 0.85
resolveBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected