Skip to content

feat(firestore-api): add explicit ./protos/protos package subpath export - #9105

Merged
quirogas merged 3 commits into
googleapis:mainfrom
quirogas:feat/firestore-api-package-exports
Aug 7, 2026
Merged

feat(firestore-api): add explicit ./protos/protos package subpath export#9105
quirogas merged 3 commits into
googleapis:mainfrom
quirogas:feat/firestore-api-package-exports

Conversation

@quirogas

@quirogas quirogas commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Adds explicit ./protos/protos subpath export to @google-cloud/firestore-api to support clean proto imports without build/ directory exposure:

"./protos/protos": {
  "types": "./build/protos/protos.d.ts",
  "default": "./build/protos/protos.js"
}
  • Strictly uses explicit subpath paths (no wildcards).
  • Retains existing ./build/protos/protos and ./protos entries for compatibility.

Verification

  • Unit test suite: 320 / 320 passing (100%).
  • npm pack --dry-run: successfully validated package export targets.

…a files

- Add ./protos/protos subpath export mapping directly to compiled protos declarations and implementations
- Add ./protos/* subpath wildcard export to expose raw proto schemas and JSON definitions
- Retain backward-compatible ./build/protos/* aliases
@quirogas
quirogas requested a review from a team as a code owner August 6, 2026 22:07

@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 adds subpath exports for ./protos/protos, ./protos/*, and ./build/protos/* to the package.json of @google-cloud/firestore-api. However, because this package is an auto-generated client library, manually editing its configuration will result in these changes being overwritten during the next regeneration cycle. It is recommended to apply these changes upstream in the generator or templates.

Comment on lines +36 to +39
"./protos/protos": {
"types": "./build/protos/protos.d.ts",
"default": "./build/protos/protos.js"
},

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.

high

This package (@google-cloud/firestore-api) is an auto-generated client library. Manually editing its package.json to add these subpath exports will result in them being overwritten during the next regeneration cycle. Please apply these changes upstream in the generator or templates instead.

References
  1. Do not manually edit generated client configuration JSON files. Any changes or updates must be made upstream in the generator.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We've added package.json to librarian.yaml keep list, so this file shouldn't be overwritten.

@quirogas quirogas added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 6, 2026
- Add explicit ./protos/protos subpath export mapping directly to compiled protos declarations and implementations
- Keep strictly explicit subpath definitions without wildcards
@quirogas quirogas changed the title feat(firestore-api): add package subpath exports for protos and schema files feat(firestore-api): add explicit ./protos/protos package subpath export Aug 6, 2026
@quirogas quirogas removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 7, 2026
@quirogas
quirogas enabled auto-merge (squash) August 7, 2026 00:16
@quirogas
quirogas merged commit 4ac404d into googleapis:main Aug 7, 2026
35 checks passed
@release-please release-please Bot mentioned this pull request Aug 7, 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.

3 participants