MCPcopy Create free account
hub / github.com/nodejs/node / lookupFromPackageJson

Function lookupFromPackageJson

test/fixtures/snapshot/typescript.js:116487–116490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116485 return undefined;
116486 }
116487 function lookupFromPackageJson() {
116488 var scope = ts.getPackageScopeForPath(fileName, packageJsonInfoCache, host, options);
116489 return (scope === null || scope === void 0 ? void 0 : scope.packageJsonContent.type) === "module" ? ts.ModuleKind.ESNext : ts.ModuleKind.CommonJS;
116490 }
116491 }
116492 ts.getImpliedNodeFormatForFile = getImpliedNodeFormatForFile;
116493 /** @internal */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected