MCPcopy Index your code
hub / github.com/nodejs/node / readPackageJsonMainField

Function readPackageJsonMainField

test/fixtures/snapshot/typescript.js:42433–42435  ·  view source on GitHub ↗
(jsonContent, baseDirectory, state)

Source from the content-addressed store, hash-verified

42431 return readPackageJsonPathField(jsonContent, "tsconfig", baseDirectory, state);
42432 }
42433 function readPackageJsonMainField(jsonContent, baseDirectory, state) {
42434 return readPackageJsonPathField(jsonContent, "main", baseDirectory, state);
42435 }
42436 function readPackageJsonTypesVersionsField(jsonContent, state) {
42437 var typesVersions = readPackageJsonField(jsonContent, "typesVersions", "object", state);
42438 if (typesVersions === undefined)

Callers 1

Calls 1

readPackageJsonPathFieldFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…