updatePackage() — vue Function Reference
Architecture documentation for the updatePackage() function in release.js from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d8e37b2a_0f5f_5c96_d947_dd6a40921d47["updatePackage()"] 62056798_8de6_14bf_7c16_4b4ac238cc56["release.js"] d8e37b2a_0f5f_5c96_d947_dd6a40921d47 -->|defined in| 62056798_8de6_14bf_7c16_4b4ac238cc56 c60badf3_b09f_932b_32cb_5499fe7d97cf["main()"] c60badf3_b09f_932b_32cb_5499fe7d97cf -->|calls| d8e37b2a_0f5f_5c96_d947_dd6a40921d47 style d8e37b2a_0f5f_5c96_d947_dd6a40921d47 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