Skip to content

fix: resolve aliases inherited through tsconfig extends arrays - #127

Merged
haydenschmitty merged 1 commit into
haydenschmitty:mainfrom
daniyyell-dev:fix/126-tsconfig-extends-array
Nov 15, 2026
Merged

haydenschmitty merged 1 commit into
haydenschmitty:mainfrom
daniyyell-dev:fix/126-tsconfig-extends-array

Conversation

@daniyyell-dev

Copy link
Copy Markdown
Contributor

What this changes

Fixes #126. When a local tsconfig.json extends several configs, inherited aliases now resolve to the source files instead of appearing as external npm packages.

Read local bases in order, with later bases overriding earlier ones and the child taking precedence. Track the origins of paths and legacy baseUrl separately so inheritance through different folders keeps the correct resolution directory. An empty child paths map clears inherited aliases; a base without a paths map does not erase an earlier map. Existing cycle protection and single-string inheritance remain supported.

The new tests include the issue's small TypeScript project, nested arrays, precedence, child overrides, relative directories, legacy baseUrl, string inheritance and cycles. The changelog and development test table are updated.

How I tested it

  • The 9 new tests pass; 7 of them fail on unchanged main.
  • npm test: 298 tests, 297 passed, 1 platform skip, 0 failed.
  • Plugin manifest validation passed.
  • Scanned a source copy of OpenLIT's public Next.js/TypeScript client (openlit/openlit at 15f5be40331a713e50d96a7bc01ef1f875dce76e) before and after: 1,709 files, 5,819 import edges and 83 external packages in both. Import-edge and external-package lists are identical. No changes were made to that project's source.
  • git diff --check: passed.

Checklist

  • No new dependencies
  • Anything the map shows people is in plain language
  • No secret values stored or printed
  • No details of a real private project in code, comments, docs or screenshots
  • npm test passes
  • Plugin manifest validation passes
  • CHANGELOG.md updated, if people will notice the change

@haydenschmitty

Copy link
Copy Markdown
Owner

Merged and released in 0.9.0. Thank you!

Update with claude plugin update floorplan@floorplan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript aliases inherited through array-form tsconfig extends are treated as external packages

2 participants