getLatestTag() — vite Function Reference
Architecture documentation for the getLatestTag() function in releaseUtils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 9580c4c6_308b_4e00_3956_01c9d19c4786["getLatestTag()"] a29bcc0c_c42b_5d23_0e04_88b2bf49cb44["releaseUtils.ts"] 9580c4c6_308b_4e00_3956_01c9d19c4786 -->|defined in| a29bcc0c_c42b_5d23_0e04_88b2bf49cb44 15ef297e_ccd3_0829_51d4_4f49bee8592f["logRecentCommits()"] 15ef297e_ccd3_0829_51d4_4f49bee8592f -->|calls| 9580c4c6_308b_4e00_3956_01c9d19c4786 style 9580c4c6_308b_4e00_3956_01c9d19c4786 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/releaseUtils.ts lines 17–23
export async function getLatestTag(pkgName: string): Promise<string> {
const pkgJson = JSON.parse(
await fs.readFile(`packages/${pkgName}/package.json`, 'utf-8'),
)
const version = pkgJson.version
return pkgName === 'vite' ? `v${version}` : `${pkgName}@${version}`
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getLatestTag() do?
getLatestTag() is a function in the vite codebase, defined in scripts/releaseUtils.ts.
Where is getLatestTag() defined?
getLatestTag() is defined in scripts/releaseUtils.ts at line 17.
What calls getLatestTag()?
getLatestTag() is called by 1 function(s): logRecentCommits.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free