typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Fix #1034: Improve symlink resolution in module specifier generation

Open chase opened this issue 2 months ago • 15 comments

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

chase avatar Oct 18 '25 11:10 chase