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

Function findConfigFile

test/fixtures/snapshot/typescript.js:115719–115725  ·  view source on GitHub ↗
(searchPath, fileExists, configName)

Source from the content-addressed store, hash-verified

115717var ts;
115718(function (ts) {
115719 function findConfigFile(searchPath, fileExists, configName) {
115720 if (configName === void 0) { configName = "tsconfig.json"; }
115721 return ts.forEachAncestorDirectory(searchPath, function (ancestor) {
115722 var fileName = ts.combinePaths(ancestor, configName);
115723 return fileExists(fileName) ? fileName : undefined;
115724 });
115725 }
115726 ts.findConfigFile = findConfigFile;
115727 function resolveTripleslashReference(moduleName, containingFile) {
115728 var basePath = ts.getDirectoryPath(containingFile);

Callers

nothing calls this directly

Calls 1

fileExistsFunction · 0.70

Tested by

no test coverage detected