MCPcopy
hub / github.com/electron/forge / readMutatedPackageJson

Function readMutatedPackageJson

packages/api/core/src/util/read-package-json.ts:13–21  ·  view source on GitHub ↗
(
  dir: string,
  forgeConfig: ResolvedForgeConfig,
)

Source from the content-addressed store, hash-verified

11
12// eslint-disable-next-line @typescript-eslint/no-explicit-any
13export const readMutatedPackageJson = async (
14 dir: string,
15 forgeConfig: ResolvedForgeConfig,
16): Promise<any> =>
17 runMutatingHook(
18 forgeConfig,
19 'readPackageJson',
20 await readRawPackageJson(dir),
21 );

Callers 4

start.tsFile · 0.90
listrMakeFunction · 0.90
listrPackageFunction · 0.90

Calls 2

runMutatingHookFunction · 0.90
readRawPackageJsonFunction · 0.85

Tested by

no test coverage detected