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

Function getPackageJson

packages/cli-v3/src/commands/update.ts:299–307  ·  view source on GitHub ↗
(absoluteProjectPath: string)

Source from the content-addressed store, hash-verified

297}
298
299export async function getPackageJson(absoluteProjectPath: string) {
300 const packageJsonPath = join(absoluteProjectPath, "package.json");
301
302 const readonlyPackageJson = Object.freeze((await readJSONFile(packageJsonPath)) as PackageJson);
303
304 const packageJson = structuredClone(readonlyPackageJson);
305
306 return { packageJson, readonlyPackageJson, packageJsonPath };
307}

Callers 1

updateTriggerPackagesFunction · 0.85

Calls 1

readJSONFileFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…