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

Function writePackageJSON

packages/cli/src/utils.ts:25–28  ·  view source on GitHub ↗
(dir: string, data: any)

Source from the content-addressed store, hash-verified

23}
24
25export async function writePackageJSON(dir: string, data: any) {
26 const packageJsonPath = resolve(dir, `./package.json`)
27 await writeFile(packageJsonPath, JSON.stringify(data, null, 2))
28}
29
30const execAsync = promisify(exec)
31

Callers 2

customizePackageJsonFunction · 0.90
addDependencyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected