Home / Function/ run() — react Function Reference

run() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7ce46345_e85f_7b72_f1b4_f0cc1438f132["run()"]
  8074f347_ea01_4186_9dc5_bb1d338eafe1["build-release-locally.js"]
  7ce46345_e85f_7b72_f1b4_f0cc1438f132 -->|defined in| 8074f347_ea01_4186_9dc5_bb1d338eafe1
  style 7ce46345_e85f_7b72_f1b4_f0cc1438f132 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/release/build-release-locally.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-locally.js.
Where is run() defined?
run() is defined in scripts/release/build-release-locally.js at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free