MCPcopy Create free account
hub / github.com/formkit/formkit / getPackageJSON

Function getPackageJSON

scripts/utils.mjs:258–261  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

256 * Given a package name, retrieve the package.json data
257 */
258export function getPackageJSON(pkg) {
259 const packageJSONRaw = fs.readFileSync(`${packagesDir}/${pkg}/package.json`)
260 return JSON.parse(packageJSONRaw)
261}
262
263/**
264 * write package.json file to file system for a given package

Callers 15

setPackageVersionsFunction · 0.90
setPackageVersionsFunction · 0.90
ciPublishFunction · 0.90
promptForTaggedVersionFunction · 0.90
writePackageJSONFilesFunction · 0.90
prePublishPackageFunction · 0.90
setNewPackageVersionFunction · 0.90
publishPackagesFunction · 0.90
promptForTaggedVersionFunction · 0.90
promptForMasterVersionFunction · 0.90
writePackageJSONFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected