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

Function syncReactNativeHelper

scripts/rollup/sync.js:30–44  ·  view source on GitHub ↗
(
  buildPath,
  fbSourcePath,
  relativeDestPath
)

Source from the content-addressed store, hash-verified

28}
29
30async function syncReactNativeHelper(
31 buildPath,
32 fbSourcePath,
33 relativeDestPath
34) {
35 fbSourcePath =
36 typeof fbSourcePath === 'string' ? fbSourcePath : DEFAULT_FB_SOURCE_PATH;
37
38 if (fbSourcePath.charAt(fbSourcePath.length - 1) !== '/') {
39 fbSourcePath += '/';
40 }
41
42 const destPath = resolvePath(fbSourcePath + relativeDestPath);
43 await doSync(buildPath, destPath);
44}
45
46async function syncReactNative(fbSourcePath) {
47 await syncReactNativeHelper(

Callers 1

syncReactNativeFunction · 0.85

Calls 2

resolvePathFunction · 0.85
doSyncFunction · 0.85

Tested by

no test coverage detected