MCPcopy Create free account
hub / github.com/netlify/cli / getPackageJSON

Function getPackageJSON

scripts/netlifyPackage.js:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const packageJSON = await getPackageJSON()
10
11async function getPackageJSON() {
12 const packageJSONPath = resolve('package.json')
13
14 /**
15 * @type {Package}
16 */
17 const contents = JSON.parse(await readFile(packageJSONPath, 'utf8'))
18
19 return {
20 contents,
21 path: packageJSONPath,
22 }
23}
24
25async function preparePackageJSON() {
26 const binPath = Object.values(packageJSON.contents.bin ?? {})[0]

Callers 1

netlifyPackage.jsFile · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected