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

Function readPackageJson

packages/cli/src/utils/readPackageJson.ts:5–10  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

3import { readJSONFile } from "./fileSystem";
4
5export async function readPackageJson(directory: string): Promise<PackageJson | undefined> {
6 const packageJsonPath = pathModule.join(directory, "package.json");
7 return readJSONFile(packageJsonPath)
8 .then((f) => f as PackageJson)
9 .catch(() => undefined);
10}

Callers 7

isMatchMethod · 0.90
isMatchMethod · 0.90
isMatchMethod · 0.90
detectNextDependencyFunction · 0.90
detectNextVersionFunction · 0.90
isMatchMethod · 0.90

Calls 3

readJSONFileFunction · 0.90
catchMethod · 0.80
thenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…