MCPcopy Index your code
hub / github.com/formkit/formkit / writePackageJSON

Function writePackageJSON

scripts/utils.mjs:266–271  ·  view source on GitHub ↗
(pkg, json)

Source from the content-addressed store, hash-verified

264 * write package.json file to file system for a given package
265 */
266export function writePackageJSON(pkg, json) {
267 fs.writeFileSync(
268 `${packagesDir}/${pkg}/package.json`,
269 JSON.stringify(json, null, 2)
270 )
271}
272
273/**
274 * Provide array of dependency packages for a provided package

Callers 5

setPackageVersionsFunction · 0.90
setPackageVersionsFunction · 0.90
writePackageJSONFilesFunction · 0.90
writePackageJSONFilesFunction · 0.90
cleanupPackageVersionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected