MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / writeJson

Function writeJson

packages/bumpy/test/core/check-pkgjson-fields.test.ts:42–45  ·  view source on GitHub ↗
(path: string, data: unknown)

Source from the content-addressed store, hash-verified

40 }
41
42 async function writeJson(path: string, data: unknown): Promise<void> {
43 await mkdir(resolve(tmpDir, path, '..'), { recursive: true });
44 await writeFile(resolve(tmpDir, path), `${JSON.stringify(data, null, 2)}\n`);
45 }
46
47 /** Set up a single-package monorepo on main, then branch to "feature". */
48 async function setupPkg(pkgJson: Record<string, unknown>): Promise<void> {

Callers 2

setupPkgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…