MCPcopy
hub / github.com/vuejs/core / getPkgManifest

Function getPkgManifest

scripts/release.js:135–140  ·  view source on GitHub ↗
(/** @type {string} */ pkg)

Source from the content-addressed store, hash-verified

133const getPkgRoot = (/** @type {string} */ pkg) =>
134 path.resolve(__dirname, '../packages/' + pkg)
135const getPkgManifest = (/** @type {string} */ pkg) =>
136 /** @type {Package} */ (
137 JSON.parse(
138 fs.readFileSync(path.resolve(getPkgRoot(pkg), 'package.json'), 'utf-8'),
139 )
140 )
141const step = (/** @type {string} */ msg) => console.log(pico.cyan(msg))
142
143async function main() {

Callers 1

publishPackageFunction · 0.85

Calls 3

getPkgRootFunction · 0.85
parseMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected