MCPcopy
hub / github.com/triggerdotdev/trigger.dev / writeJSONFile

Function writeJSONFile

packages/cli-v3/src/utilities/fileSystem.ts:70–72  ·  view source on GitHub ↗
(path: string, json: any, pretty = false)

Source from the content-addressed store, hash-verified

68}
69
70export async function writeJSONFile(path: string, json: any, pretty = false) {
71 await writeFile(path, JSON.stringify(json, undefined, pretty ? 2 : undefined), "utf8");
72}
73
74export function readJSONFileSync(path: string) {
75 const fileContents = fsSync.readFileSync(path, "utf8");

Callers 5

compileProjectFunction · 0.90
setPackageJsonDepsFunction · 0.90
updateTriggerPackagesFunction · 0.50
revertPackageJsonChangesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…