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

Function doSync

scripts/rollup/sync.js:12–17  ·  view source on GitHub ↗
(buildPath, destPath)

Source from the content-addressed store, hash-verified

10const RELATIVE_WWW_PATH = 'html/shared/react/';
11
12async function doSync(buildPath, destPath) {
13 console.log(`${chalk.bgYellow.black(' SYNCING ')} React to ${destPath}`);
14
15 await asyncCopyTo(buildPath, destPath);
16 console.log(`${chalk.bgGreen.black(' SYNCED ')} React to ${destPath}`);
17}
18
19async function syncReactDom(buildPath, wwwPath) {
20 wwwPath = typeof wwwPath === 'string' ? wwwPath : DEFAULT_WWW_PATH;

Callers 2

syncReactDomFunction · 0.85
syncReactNativeHelperFunction · 0.85

Calls 1

asyncCopyToFunction · 0.70

Tested by

no test coverage detected