getPackageVersionSync() — tailwindcss Function Reference
Architecture documentation for the getPackageVersionSync() function in package-version.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574["getPackageVersionSync()"] fa69e083_0e2c_fe1c_154d_45715c20b157["cache()"] fa69e083_0e2c_fe1c_154d_45715c20b157 -->|calls| f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574 b450167c_267d_f5f1_2949_2913d41a5259["resolveJsId()"] f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574 -->|calls| b450167c_267d_f5f1_2949_2913d41a5259 style f2d0dcbe_a71e_3adc_a2dc_e05a3b4eb574 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/utils/package-version.ts lines 20–29
export function getPackageVersionSync(pkg: string, base: string): string | null {
try {
let packageJson = resolveJsId(`${pkg}/package.json`, base)
if (!packageJson) return null
let { version } = JSON.parse(readFileSync(packageJson, 'utf8'))
return version
} catch {
return null
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getPackageVersionSync() do?
getPackageVersionSync() is a function in the tailwindcss codebase.
What does getPackageVersionSync() call?
getPackageVersionSync() calls 1 function(s): resolveJsId.
What calls getPackageVersionSync()?
getPackageVersionSync() is called by 1 function(s): cache.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free