Skip to content

fix(gapic-node-processing): preserve index.ts exports and merge clients across multi-api staging subdirectories - #8953

Merged
quirogas merged 4 commits into
googleapis:mainfrom
quirogas:feature/fix-multi-api-barrel-exports-6969
Jul 23, 2026
Merged

fix(gapic-node-processing): preserve index.ts exports and merge clients across multi-api staging subdirectories#8953
quirogas merged 4 commits into
googleapis:mainfrom
quirogas:feature/fix-multi-api-barrel-exports-6969

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

Combine duplicate version barrel export files (src/v*/index.ts) using TypeScript AST parsing to prevent sequential gapic-generator passes from overwriting exports. Aggregate client class names across all staging subdirectories per version to ensure top-level index.ts re-exports all generated clients.

For googleapis/librarian#6969

…ts across multi-api staging subdirectories

Combine duplicate version barrel export files (src/v*/index.ts) using TypeScript AST parsing to prevent sequential gapic-generator passes from overwriting exports. Aggregate client class names across all staging subdirectories per version to ensure top-level index.ts re-exports all generated clients.

For googleapis/librarian#6969
@quirogas quirogas self-assigned this Jul 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces functionality to merge export statements across version index files when combining libraries, and refactors client/version extraction to use a map of sets to avoid duplicates. The review feedback suggests refining the version index file regex to prevent matching non-version directories (e.g., 'validators') and removing a redundant fs.stat call before fs.readFile to improve I/O efficiency.

Comment thread core/packages/gapic-node-processing/src/combine-libraries.ts
Comment thread core/packages/gapic-node-processing/src/library.ts Outdated
@quirogas
quirogas marked this pull request as ready for review July 23, 2026 17:27
@quirogas
quirogas requested a review from a team as a code owner July 23, 2026 17:27

@feywind feywind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One quick double-check comment.

Comment thread core/packages/gapic-node-processing/src/library.ts Outdated
@quirogas
quirogas merged commit fee5a15 into googleapis:main Jul 23, 2026
34 checks passed
@release-please release-please Bot mentioned this pull request Jul 23, 2026
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.

2 participants