fix(extract): resolve TypeScript wildcard path aliases#1544
Closed
oleksii-tumanov wants to merge 2 commits into
Closed
fix(extract): resolve TypeScript wildcard path aliases#1544oleksii-tumanov wants to merge 2 commits into
oleksii-tumanov wants to merge 2 commits into
Conversation
This was referenced Jun 29, 2026
safishamsi
pushed a commit
that referenced
this pull request
Jun 30, 2026
Extends the tsconfig path-alias resolver (#1531) with single-`*` wildcard capture and substitution: a pattern like `@app/*` or `@*/interfaces` captures the matched segment and substitutes it into each target in declared order, honoring baseUrl and tsc's longest-prefix / exact-wins specificity rules, and preserving #1531's first-existing-target-wins fallback (no false edge when nothing resolves). Builds on the _resolve_tsconfig_alias helper rather than reintroducing inline loops; multi-star patterns remain out of scope. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
|
Merged into |
safishamsi
added a commit
that referenced
this pull request
Jun 30, 2026
README: document that `reflect --graph` writes the .graphify_learning.json overlay and that explain/query surface a Lesson hint (with the code-changed staleness flag). CHANGELOG: add an Unreleased section for the post-0.9.2 work — the work-memory overlay (#1441/#1542), this.field.method() injected-field resolution (#1316), TS wildcard path aliases (#1544), JS namespace re-exports (#1552), and the ObjC dot-syntax/@selector edges (#1475/#1543). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
safishamsi
added a commit
that referenced
this pull request
Jun 30, 2026
Cross-file member-call resolution for C++/ObjC (#1547/#1556) and namespace-aware C# type resolution (#1562), the work-memory overlay (#1441), test-mock call-graph fix (#1553), hyperedge member-key aliases (#1561), plus the TS/JS/ObjC resolution fixes (#1316/#1544/#1552/#1475). See CHANGELOG. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compilerOptions.pathspatternsScoped
v8follow-up to #927, which contains the original investigation and implementation. Related to #147.Result
Relevant wildcard resolutions (path-normalized):
The longest-prefix case emits no edge to
fallback/common/integration/foo.ts.Testing
uv run --frozen --no-sync pytest tests/test_js_import_resolution.py -q(46 passed)uv run --frozen --no-sync pytest tests/ -q --tb=short(2517 passed, 28 skipped)uv run --frozen --no-sync ruff check graphify/extract.py tests/test_js_import_resolution.py(passed)