* Clean the extendsConfigCache when extended config file has changed
(extendedConfigCache, extendedConfigFilePath, toPath)
| 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 |