Commit dc5c91a
committed
build(firestore): modernize and improve protobuf generation scripts
Modernized update.sh and compile.sh to use npx and improved their
robustness. Key changes include:
- Replaced brittle line-number patching in update.sh with a context-aware
.patch file for the verify field.
- Automated proto file discovery in compile.sh using find instead of
hardcoded file lists.
- Added dependency verification for required CLI tools (git, patch, npx).
- Restructured update.sh to selectively copy only necessary dependencies from
google/api and google/protobuf.
- Improved path handling to ensure scripts work correctly regardless of the
current working directory.
- Removed unused and untracked TypeScript declaration generation (temp.d.ts).
- Updated Firestore and dependency protobufs to their latest versions.1 parent 7bb8c35 commit dc5c91a
29 files changed
Lines changed: 6995 additions & 3435 deletions
File tree
- packages/firestore/src/protos
- google
- api
- firestore/v1
- protobuf
- rpc
- type
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments