npm / tsc-alias
tsc-alias
What changed in tsc-alias 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-27.
3 new APIs and options4 behavior and defaults14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittsc-alias 121 changes
New APIs and options 3
Preserve bare package subpaths while still resolving extensions for relative and alias imports.
Configure whether --resolve-full-paths appends extensions to third-party package subpaths; the option is also available through the API and CLI.
Automatically resolves import aliases across the entire project references graph when using tsc --build.
Behavior and default changes 4
With moduleResolution set to bundler or Bundler, bare package subpaths are preserved by default.
Dynamic imports with Import Attributes / Options are now supported.
Import path resolution supports and strips .tsx, .jsx, .mts, .mjs, .cts, and .cjs extensions.
TypeScript wildcard mappings support suffixes in alias keys and target paths, as well as median wildcards.
Fixes and other changes 14
Subpath resolution now respects package exports.
Aliases resolve to existing build artifacts.
resolveFullPaths can add extensions for module subpath imports.
Aliases between declaration files are now correctly resolved when using build with emitDeclarationOnly.
Avoids rewriting external imports that match empty directories when using baseUrl.
Fixes rewriting paths aliases outside rootDir that use ../.
Fixes alias rewriting when a sibling file and directory collide.
Fixes collisions between source files and node modules based on baseUrl.
Alias paths are resolved when baseUrl points to a nested subdirectory.
Path calculation and type alias resolution are fixed when declarationDir is nested inside outDir.
Project directory resolution in outDir uses ancestor suffix matching to prevent folder name collisions.
Path mapping now supports catch-all wildcard expressions.
Fixes unintended activation of baseurl mode.
Supports TypeScript 6 implicit baseURL so tsc-alias works with this configuration behavior.