MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / writeJson

Function writeJson

packages/bumpy/test/core/check-catalog.test.ts:43–46  ·  view source on GitHub ↗
(path: string, data: unknown)

Source from the content-addressed store, hash-verified

41 }
42
43 async function writeJson(path: string, data: unknown): Promise<void> {
44 await mkdir(resolve(tmpDir, path, '..'), { recursive: true });
45 await writeFile(resolve(tmpDir, path), JSON.stringify(data, null, 2));
46 }
47 async function writeFileAt(path: string, content: string): Promise<void> {
48 await mkdir(resolve(tmpDir, path, '..'), { recursive: true });
49 await writeFile(resolve(tmpDir, path), content);

Callers 4

setupPackageFunction · 0.90
migrate.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…