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

Function cleanExtendedConfigCache

test/fixtures/snapshot/typescript.js:115469–115479  ·  view source on GitHub ↗

* Clean the extendsConfigCache when extended config file has changed

(extendedConfigCache, extendedConfigFilePath, toPath)

Source from the content-addressed store, hash-verified

115467 * Clean the extendsConfigCache when extended config file has changed
115468 */
115469 function cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath) {
115470 if (!extendedConfigCache.delete(extendedConfigFilePath))
115471 return;
115472 extendedConfigCache.forEach(function (_a, key) {
115473 var _b;
115474 var extendedResult = _a.extendedResult;
115475 if ((_b = extendedResult.extendedSourceFiles) === null || _b === void 0 ? void 0 : _b.some(function (extendedFile) { return toPath(extendedFile) === extendedConfigFilePath; })) {
115476 cleanExtendedConfigCache(extendedConfigCache, key, toPath);
115477 }
115478 });
115479 }
115480 ts.cleanExtendedConfigCache = cleanExtendedConfigCache;
115481 /**
115482 * Updates watchers based on the package json files used in module resolution

Callers

nothing calls this directly

Calls 4

toPathFunction · 0.85
someMethod · 0.80
deleteMethod · 0.65
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…