MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / writeJSONFile

Function writeJSONFile

packages/cli/src/utils/fileSystem.ts:51–53  ·  view source on GitHub ↗
(path: string, json: any)

Source from the content-addressed store, hash-verified

49}
50
51export async function writeJSONFile(path: string, json: any) {
52 await writeFile(path, JSON.stringify(json, null, 2));
53}
54
55export function readJSONFileSync(path: string) {
56 const fileContents = fsSync.readFileSync(path, "utf8");

Callers 2

updateCommandFunction · 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…