Home / Function/ readPackageJSON() — react Function Reference

readPackageJSON() — react Function Reference

Architecture documentation for the readPackageJSON() function in validate-skip-packages.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b15174cb_41b5_fb78_77bb_2ba6bd680dfc["readPackageJSON()"]
  5c270b85_624f_5a90_4e7f_10f8009528ba["validate-skip-packages.js"]
  b15174cb_41b5_fb78_77bb_2ba6bd680dfc -->|defined in| 5c270b85_624f_5a90_4e7f_10f8009528ba
  0e7a3cd8_e34a_8498_ab3e_661e6b80583a["run()"]
  0e7a3cd8_e34a_8498_ab3e_661e6b80583a -->|calls| b15174cb_41b5_fb78_77bb_2ba6bd680dfc
  style b15174cb_41b5_fb78_77bb_2ba6bd680dfc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/release/publish-commands/validate-skip-packages.js lines 10–19

const readPackageJSON = async (cwd, name) => {
  const packageJSONPath = join(
    cwd,
    'build',
    'node_modules',
    name,
    'package.json'
  );
  return await readJson(packageJSONPath);
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does readPackageJSON() do?
readPackageJSON() is a function in the react codebase, defined in scripts/release/publish-commands/validate-skip-packages.js.
Where is readPackageJSON() defined?
readPackageJSON() is defined in scripts/release/publish-commands/validate-skip-packages.js at line 10.
What calls readPackageJSON()?
readPackageJSON() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free