You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This aligns with upstream TypeScript's symlink resolution behavior,
ensuring correct module specifiers in declaration files for monorepos
and symlinked dependencies.
Fixes baseline mismatches in:
- declarationEmitReexportedSymlinkReference2/3
- symlinkedWorkspaceDependencies* tests
- nodeModuleReexportFromDottedPath
0 commit comments