updatePackage() — vue Function Reference
Architecture documentation for the updatePackage() function in release.js from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 73b6c0fa_c53b_4ca6_a74f_179deb02e560["updatePackage()"] 0eec000d_49b6_8620_8562_6755100cc5c1["release.js"] 73b6c0fa_c53b_4ca6_a74f_179deb02e560 -->|defined in| 0eec000d_49b6_8620_8562_6755100cc5c1 972fb9c2_5d8a_c197_c499_7cac09d96d9f["main()"] 972fb9c2_5d8a_c197_c499_7cac09d96d9f -->|calls| 73b6c0fa_c53b_4ca6_a74f_179deb02e560 style 73b6c0fa_c53b_4ca6_a74f_179deb02e560 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
Defined In
Called By
Source
Frequently Asked Questions
What does updatePackage() do?
updatePackage() is a function in the vue codebase, defined in scripts/release.js.
Where is updatePackage() defined?
updatePackage() is defined in scripts/release.js at line 134.
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