uilint 0.2.154 → 0.2.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3902,7 +3902,7 @@ async function serve(options) {
3902
3902
  });
3903
3903
  setServerRunning(port);
3904
3904
  if (useDashboardUI) {
3905
- const { renderDashboard } = await import("./render-2P4YWHXV.js");
3905
+ const { renderDashboard } = await import("./render-XJWB6MVI.js");
3906
3906
  const { waitUntilExit } = renderDashboard({
3907
3907
  onQuit: () => {
3908
3908
  clearInterval(pingInterval);
@@ -3913,6 +3913,37 @@ async function serve(options) {
3913
3913
  },
3914
3914
  onRebuildIndex: () => {
3915
3915
  buildDuplicatesIndex(appRoot);
3916
+ },
3917
+ onClearCache: () => {
3918
+ cache.clear();
3919
+ fastCache.clear();
3920
+ semanticCache.clear();
3921
+ eslintInstances2.clear();
3922
+ eslintFastInstances.clear();
3923
+ updateCacheCount(0);
3924
+ logCacheInvalidate();
3925
+ import("uilint-eslint").then(
3926
+ ({ clearCache, clearAllSuggestions }) => {
3927
+ clearCache(wsRoot);
3928
+ clearAllSuggestions(wsRoot);
3929
+ if (appRoot !== wsRoot) {
3930
+ clearCache(appRoot);
3931
+ clearAllSuggestions(appRoot);
3932
+ }
3933
+ }
3934
+ );
3935
+ import("uilint-coverage").then(({ clearCoverageCache }) => {
3936
+ clearCoverageCache();
3937
+ });
3938
+ const coveragePath2 = join3(appRoot, "coverage", "coverage-final.json");
3939
+ if (existsSync5(coveragePath2)) {
3940
+ unlinkSync(coveragePath2);
3941
+ }
3942
+ buildCoverageData(appRoot);
3943
+ import("uilint-duplicates").then(({ clearIndexerCache }) => {
3944
+ clearIndexerCache(appRoot);
3945
+ });
3946
+ buildDuplicatesIndex(appRoot);
3916
3947
  }
3917
3948
  });
3918
3949
  await waitUntilExit();