typescript-go
typescript-go copied to clipboard
Fix #1034: Improve symlink resolution in module specifier generation
Extends the symlink support in GetEachFileNameOfModule to properly resolve module specifiers across symlinked packages and workspaces.
Key changes:
- Move knownsymlinks from compiler to dedicated symlinks package
- Implement active resolution via ResolveModuleName to populate cache
- Add dependency resolution from package.json to detect symlinks early
- Improve ignored path handling (node_modules/., .git, .# emacs locks)
- Add comprehensive test coverage for symlink resolution
- Fix declaration emit to prefer original paths over symlink paths
Fixes https://github.com/microsoft/typescript-go/issues/1657 Fixes https://github.com/microsoft/typescript-go/issues/1034 Fixes https://github.com/microsoft/typescript-go/issues/1347