Home / Function/ run() — react Function Reference

run() — react Function Reference

Architecture documentation for the run() function in build-release.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  01c1e9bd_b1c6_cc45_39de_2bfd3a026bd1["run()"]
  68ebcfea_8d6f_3e30_e1c9_6a5804092ac2["build-release.js"]
  01c1e9bd_b1c6_cc45_39de_2bfd3a026bd1 -->|defined in| 68ebcfea_8d6f_3e30_e1c9_6a5804092ac2
  style 01c1e9bd_b1c6_cc45_39de_2bfd3a026bd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/release/build-release.js lines 24–50

const run = async () => {
  try {
    const cwd = join(__dirname, '..', '..');
    const {branch, checksum, commit, reactVersion, version} =
      await getBuildInfo();
    const tempDirectory = join(tmpdir(), `react-${commit}`);
    const params = {
      branch,
      checksum,
      commit,
      cwd,
      reactVersion,
      tempDirectory,
      version,
    };

    await confirmAutomatedTesting(params);
    await copyRepoToTempDirectory(params);
    await updateVersionNumbers(params);
    await addBuildInfoJSON(params);
    await buildArtifacts(params);
    await npmPackAndUnpack(params);
    await printPrereleaseSummary(params, false);
  } catch (error) {
    handleError(error);
  }
};

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the react codebase, defined in scripts/release/build-release.js.
Where is run() defined?
run() is defined in scripts/release/build-release.js at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free