Skip to content

docs: document additional library macros with regression coverage - #108

Merged
longlho merged 1 commit into
mainfrom
codex/library-alias-indexing
Sep 28, 2026
Merged

longlho merged 1 commit into
mainfrom
codex/library-alias-indexing

Conversation

@longlho

@longlho longlho commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Problem: second TypeScript library macro appears unrecognized; consumers retain dependencies with # keep. Existing alias_kind setup lacked documented example and regression coverage.

Gazelle canonicalizes aliases before Imports. With map_kind ts_library app_ts_library, use alias_kind node_ts_library app_ts_library: existing macro stays, new libraries use default. Scoped map_kind also works when subtree should generate second macro.

Document both. Add fixtures proving inferred dependencies and preserved macros, including ignored producer with literal generated source. No plugin behavior change.

Validation: unit and generation suites pass at 701dd6e with resolved Gazelle 0.51.3. Second alias run unchanged; removing alias loses ignored-producer dependency. gazelle_ts 0.6.5 not separately tested.

@longlho
longlho enabled auto-merge (squash) September 27, 2026 03:26
@longlho
longlho disabled auto-merge September 28, 2026 19:28
@longlho
longlho merged commit 6f2e0d9 into main Sep 28, 2026
8 checks passed
@longlho
longlho deleted the codex/library-alias-indexing branch September 28, 2026 19:28
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.

1 participant