getPackageTag() — astro Function Reference
Architecture documentation for the getPackageTag() function in context.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD bd44da83_464b_cc04_2da8_b0da33b88415["getPackageTag()"] c681252d_5f25_a22f_ed87_079b092a96de["context.ts"] bd44da83_464b_cc04_2da8_b0da33b88415 -->|defined in| c681252d_5f25_a22f_ed87_079b092a96de f1c523e9_47f3_0df8_b232_69ccf3789a51["getContext()"] f1c523e9_47f3_0df8_b232_69ccf3789a51 -->|calls| bd44da83_464b_cc04_2da8_b0da33b88415 style bd44da83_464b_cc04_2da8_b0da33b88415 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/actions/context.ts lines 36–47
function getPackageTag(packageSpecifier: string | undefined): string | undefined {
switch (packageSpecifier) {
case 'alpha':
case 'beta':
case 'rc':
return packageSpecifier;
// Will fallback to latest
case undefined:
default:
return undefined;
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getPackageTag() do?
getPackageTag() is a function in the astro codebase, defined in packages/create-astro/src/actions/context.ts.
Where is getPackageTag() defined?
getPackageTag() is defined in packages/create-astro/src/actions/context.ts at line 36.
What calls getPackageTag()?
getPackageTag() is called by 1 function(s): getContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free