Skip to content

Commit 70f97e9

Browse files
committed
refactor(move-file): clean up cache invalidation for index exports
1 parent 4ffec21 commit 70f97e9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

packages/workspace/src/generators/move-file/export-management/ensure-file-exported.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ export function ensureFileExported(
4242
content += exportStatement;
4343
tree.write(indexPath, content);
4444
treeReadCache.invalidateFile(indexPath);
45-
// Invalidate index exports cache so subsequent checks re-read
46-
try { require('./index-exports-cache').invalidateIndexExportsCacheEntry(indexPath); } catch {}
4745
logger.verbose(`Added export to ${indexPath}`);
4846
}
4947
}

packages/workspace/src/generators/move-file/export-management/remove-file-export.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export function removeFileExport(
7373
tree.write(indexPath, updatedContent);
7474
treeReadCache.invalidateFile(indexPath);
7575
astCache.invalidate(indexPath);
76-
try { require('./index-exports-cache').invalidateIndexExportsCacheEntry(indexPath); } catch {}
7776
logger.verbose(`Removed export from ${indexPath}`);
7877
}
7978
});

0 commit comments

Comments
 (0)