downloadLatestReactBuild() — react Function Reference
Architecture documentation for the downloadLatestReactBuild() function in build-and-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3ee95b5a_aca3_bd13_eaed_7eeb122fde84["downloadLatestReactBuild()"] 21cad21f_644b_d18d_0ebc_7082529ded32["build-and-test.js"] 3ee95b5a_aca3_bd13_eaed_7eeb122fde84 -->|defined in| 21cad21f_644b_d18d_0ebc_7082529ded32 5fee8731_b60a_55eb_a4e0_95679d86d20d["main()"] 5fee8731_b60a_55eb_a4e0_95679d86d20d -->|calls| 3ee95b5a_aca3_bd13_eaed_7eeb122fde84 style 3ee95b5a_aca3_bd13_eaed_7eeb122fde84 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/devtools/build-and-test.js lines 184–228
async function downloadLatestReactBuild() {
const releaseScriptPath = join(ROOT_PATH, 'scripts', 'release');
const installPromise = exec('yarn install', {cwd: releaseScriptPath});
await logger(
installPromise,
`Installing release script dependencies. ${chalk.dim(
'(this may take a minute if CI is still running)'
)}`,
{
estimate: 5000,
}
);
console.log('');
const currentCommitHash = (await exec('git rev-parse HEAD')).stdout.trim();
if (!currentCommitHash) {
throw new Error('Failed to get current commit hash');
}
const {commit} = await inquirer.prompt([
{
type: 'input',
name: 'commit',
message: 'Which React version (commit) should be used?',
default: currentCommitHash,
},
]);
console.log('');
const downloadScriptPath = join(
releaseScriptPath,
'download-experimental-build.js'
);
const downloadPromise = execRead(
`"${downloadScriptPath}" --commit=${commit}`
);
await logger(downloadPromise, 'Downloading React artifacts from CI.', {
estimate: 15000,
});
return currentCommitHash;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does downloadLatestReactBuild() do?
downloadLatestReactBuild() is a function in the react codebase, defined in scripts/devtools/build-and-test.js.
Where is downloadLatestReactBuild() defined?
downloadLatestReactBuild() is defined in scripts/devtools/build-and-test.js at line 184.
What calls downloadLatestReactBuild()?
downloadLatestReactBuild() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free