MCPcopy Index your code
hub / github.com/code-pushup/cli / readRootPackageJson

Function readRootPackageJson

packages/utils/src/lib/workspace-packages.ts:59–61  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

57}
58
59export async function readRootPackageJson(cwd: string): Promise<PackageJson> {
60 return await readJsonFile<PackageJson>(path.join(cwd, 'package.json'));
61}
62
63export async function readPnpmWorkspacePatterns(
64 cwd: string,

Callers 4

listProjectsFunction · 0.90
listWorkspacesFunction · 0.85
hasWorkspacesEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected