updatePackage() — vue Function Reference
Architecture documentation for the updatePackage() function in release.js from the vue codebase.
Entity Profile
Dependency Diagram
graph TD c2535345_4cee_9ec9_4e5e_3a09ff161cac["updatePackage()"] 9797ceff_6b01_5793_df1c_703211bf1f43["main()"] 9797ceff_6b01_5793_df1c_703211bf1f43 -->|calls| c2535345_4cee_9ec9_4e5e_3a09ff161cac style c2535345_4cee_9ec9_4e5e_3a09ff161cac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release.js lines 134–139
function updatePackage(pkgRoot, version) {
const pkgPath = path.resolve(pkgRoot, 'package.json')
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
pkg.version = version
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does updatePackage() do?
updatePackage() is a function in the vue codebase.
What calls updatePackage()?
updatePackage() is called by 1 function(s): main.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free