Home / Function/ updatePackage() — vue Function Reference

updatePackage() — vue Function Reference

Architecture documentation for the updatePackage() function in release.js from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  ce1a7e5b_2ad9_7bfb_26ad_f05e14220bc6["updatePackage()"]
  9a96ed4f_371f_b87a_07a5_c18292a63bd9["main()"]
  9a96ed4f_371f_b87a_07a5_c18292a63bd9 -->|calls| ce1a7e5b_2ad9_7bfb_26ad_f05e14220bc6
  style ce1a7e5b_2ad9_7bfb_26ad_f05e14220bc6 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

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