MCPcopy
hub / github.com/vercel/next.js / readJson

Function readJson

test/lib/next-test-utils.ts:1280–1282  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1278}
1279
1280function readJson(path: string) {
1281 return JSON.parse(readFileSync(path, 'utf-8'))
1282}
1283
1284export function getBuildManifest(dir: string) {
1285 return readJson(path.join(dir, getDistDir(), 'build-manifest.json'))

Callers 4

getBuildManifestFunction · 0.70
getImagesManifestFunction · 0.70
getPagesManifestFunction · 0.70
index.test.tsFile · 0.50

Calls 2

readFileSyncFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected