readPackageJSON() — astro Function Reference
Architecture documentation for the readPackageJSON() function in build.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 9430cf94_cdae_0511_de17_f315fa672a00["readPackageJSON()"] 35c0b351_a315_b75b_aa2a_7f7a823ba60f["build.js"] 9430cf94_cdae_0511_de17_f315fa672a00 -->|defined in| 35c0b351_a315_b75b_aa2a_7f7a823ba60f 66836503_9c73_8364_2f68_033932da2823["build()"] 66836503_9c73_8364_2f68_033932da2823 -->|calls| 9430cf94_cdae_0511_de17_f315fa672a00 429be95e_25ad_7c61_6960_5c7e722292d3["getInternalPackageVersion()"] 429be95e_25ad_7c61_6960_5c7e722292d3 -->|calls| 9430cf94_cdae_0511_de17_f315fa672a00 54c14f9b_68a8_7018_8347_979f35e3b60e["getWorkspacePackageVersion()"] 54c14f9b_68a8_7018_8347_979f35e3b60e -->|calls| 9430cf94_cdae_0511_de17_f315fa672a00 style 9430cf94_cdae_0511_de17_f315fa672a00 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/cmd/build.js lines 158–160
async function readPackageJSON(path) {
return await fs.readFile(path, { encoding: 'utf8' }).then((res) => JSON.parse(res));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does readPackageJSON() do?
readPackageJSON() is a function in the astro codebase, defined in scripts/cmd/build.js.
Where is readPackageJSON() defined?
readPackageJSON() is defined in scripts/cmd/build.js at line 158.
What calls readPackageJSON()?
readPackageJSON() is called by 3 function(s): build, getInternalPackageVersion, getWorkspacePackageVersion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free