MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / writePackageJson

Function writePackageJson

tests/update.test.ts:58–61  ·  view source on GitHub ↗
(dir: string, data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

56})
57
58async function writePackageJson(dir: string, data: Record<string, unknown>) {
59 await mkdir(dir, { recursive: true })
60 await writeFile(join(dir, "package.json"), `${JSON.stringify(data)}\n`, "utf-8")
61}

Callers 1

update.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected