getYarnOutputDepVersion() — astro Function Reference
Architecture documentation for the getYarnOutputDepVersion() function in yarn-package-manager.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 39fde743_a54e_e62a_2d68_f3f078eb93ae["getYarnOutputDepVersion()"] b242c522_469d_5b64_237c_649b5a5a6ea0["yarn-package-manager.ts"] 39fde743_a54e_e62a_2d68_f3f078eb93ae -->|defined in| b242c522_469d_5b64_237c_649b5a5a6ea0 69420a5b_fb71_a6c8_f500_8c63c716bb8e["getPackageVersion()"] 69420a5b_fb71_a6c8_f500_8c63c716bb8e -->|calls| 39fde743_a54e_e62a_2d68_f3f078eb93ae style 39fde743_a54e_e62a_2d68_f3f078eb93ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/info/infra/yarn-package-manager.ts lines 8–16
function getYarnOutputDepVersion(dependency: string, outputLine: string) {
const parsed = JSON.parse(outputLine) as YarnVersionOutputLine;
for (const [key, value] of Object.entries(parsed.children)) {
if (key.startsWith(`${dependency}@`)) {
return `v${value.locator.split(':').pop()}`;
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getYarnOutputDepVersion() do?
getYarnOutputDepVersion() is a function in the astro codebase, defined in packages/astro/src/cli/info/infra/yarn-package-manager.ts.
Where is getYarnOutputDepVersion() defined?
getYarnOutputDepVersion() is defined in packages/astro/src/cli/info/infra/yarn-package-manager.ts at line 8.
What calls getYarnOutputDepVersion()?
getYarnOutputDepVersion() is called by 1 function(s): getPackageVersion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free