Home / Function/ getReleaseType() — react Function Reference

getReleaseType() — react Function Reference

Architecture documentation for the getReleaseType() function in prepare-release.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8e3c81f4_d6d6_1a40_7215_c78cdce3365d["getReleaseType()"]
  497982e7_e1b1_28ad_fd0c_dc03591e3177["prepare-release.js"]
  8e3c81f4_d6d6_1a40_7215_c78cdce3365d -->|defined in| 497982e7_e1b1_28ad_fd0c_dc03591e3177
  cadb4d3f_5109_b4e0_6f72_18067565caef["main()"]
  cadb4d3f_5109_b4e0_6f72_18067565caef -->|calls| 8e3c81f4_d6d6_1a40_7215_c78cdce3365d
  style 8e3c81f4_d6d6_1a40_7215_c78cdce3365d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/devtools/prepare-release.js lines 174–193

async function getReleaseType() {
  const {releaseType} = await inquirer.prompt([
    {
      type: 'list',
      name: 'releaseType',
      message: 'Which type of release is this?',
      choices: [
        {
          name: 'Minor (new user facing functionality)',
          value: 'minor',
          short: 'Minor',
        },
        {name: 'Patch (bug fixes only)', value: 'patch', short: 'Patch'},
      ],
      default: 'patch',
    },
  ]);

  return releaseType;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getReleaseType() do?
getReleaseType() is a function in the react codebase, defined in scripts/devtools/prepare-release.js.
Where is getReleaseType() defined?
getReleaseType() is defined in scripts/devtools/prepare-release.js at line 174.
What calls getReleaseType()?
getReleaseType() 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