Skip to content

Commit 4b37a27

Browse files
CopilotLayZeeDK
andcommitted
docs(is-file-exported): update comments to reflect cache usage
Co-authored-by: LayZeeDK <[email protected]>
1 parent 9ffdaab commit 4b37a27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import { getIndexExports } from './index-exports-cache';
77
/**
88
* Checks if a file is exported from the project's entrypoint.
99
*
10-
* This function scans project entrypoint files (index.ts, index.tsx, etc.)
11-
* and checks for re-export statements matching the given file.
10+
* This function uses the index exports cache to scan project entrypoint files
11+
* (index.ts, index.tsx, etc.) and checks for re-export statements matching the given file.
1212
*
1313
* Supported export patterns:
1414
* - export * from "path"
1515
* - export { Something } from "path"
1616
* - export Something from "path"
1717
*
18-
* Note: This function currently only checks for re-exports (export ... from).
19-
* It does not check if symbols from the file are individually defined/exported
20-
* in the index file via local declarations.
18+
* Note: The cache system now parses local declarations, but this function currently
19+
* only checks for re-exports (export ... from). It does not check if symbols from
20+
* the file are individually defined/exported in the index file via local declarations.
2121
*
2222
* @param tree - The virtual file system tree.
2323
* @param project - Project configuration.

0 commit comments

Comments
 (0)