Home / Function/ findForks() — react Function Reference

findForks() — react Function Reference

Architecture documentation for the findForks() function in createFlowConfigs.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2ec8d95b_0301_f76b_cdc3_1653ee741c4e["findForks()"]
  2a5e8991_4a9e_eee5_6ba9_17e23524f3e8["createFlowConfigs.js"]
  2ec8d95b_0301_f76b_cdc3_1653ee741c4e -->|defined in| 2a5e8991_4a9e_eee5_6ba9_17e23524f3e8
  ff7b3cbf_47e0_6771_ec43_82c8ee1227da["addFork()"]
  ff7b3cbf_47e0_6771_ec43_82c8ee1227da -->|calls| 2ec8d95b_0301_f76b_cdc3_1653ee741c4e
  style 2ec8d95b_0301_f76b_cdc3_1653ee741c4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/flow/createFlowConfigs.js lines 26–33

function findForks(file) {
  const basePath = path.join(file, '..');
  const forksPath = path.join(basePath, 'forks');
  const forks = fs.readdirSync(path.join('packages', forksPath));
  forks.forEach(f => allForks.add('forks/' + f));
  forkedFiles.set(file, basePath);
  return basePath;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does findForks() do?
findForks() is a function in the react codebase, defined in scripts/flow/createFlowConfigs.js.
Where is findForks() defined?
findForks() is defined in scripts/flow/createFlowConfigs.js at line 26.
What calls findForks()?
findForks() is called by 1 function(s): addFork.

Analyze Your Own Codebase

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

Try Supermodel Free