Skip to content

Commit

Permalink
fix: include store protos for javascript/web (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruuuuuuuce authored Jun 7, 2024
1 parent 6373dcc commit f57c70e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript-web/generate_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ function generate_proto() {
${proto_file_list}
}

proto_file_list=" common.proto permissionmessages.proto extensions.proto cacheclient.proto controlclient.proto auth.proto cacheping.proto cachepubsub.proto vectorindex.proto token.proto webhook.proto leaderboard.proto global_admin.proto "
proto_file_list=" common.proto permissionmessages.proto extensions.proto cacheclient.proto controlclient.proto auth.proto cacheping.proto cachepubsub.proto vectorindex.proto token.proto webhook.proto leaderboard.proto global_admin.proto store.proto "
generate_proto "${proto_file_list[@]}"
1 change: 1 addition & 0 deletions javascript-web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * as ping from './CachepingServiceClientPb'
export * as leaderboard from './LeaderboardServiceClientPb'
export * as webhook from './WebhookServiceClientPb'
export * as globaladmin from './Global_adminServiceClientPb'
export * as store from './StoreServiceClientPb'
2 changes: 1 addition & 1 deletion javascript/generate_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ set -x
# tricky to build on mac. This issue showed what I believe is the "official" way to do it now... question mark?
# https://github.com/protocolbuffers/protobuf/pull/9874#issuecomment-1481023982
#
npx grpc_tools_node_protoc -I=../proto -I=/usr/local/include --ts_out=src permissionmessages.proto cacheclient.proto controlclient.proto cachepubsub.proto auth.proto cacheping.proto vectorindex.proto token.proto leaderboard.proto webhook.proto
npx grpc_tools_node_protoc -I=../proto -I=/usr/local/include --ts_out=src permissionmessages.proto cacheclient.proto controlclient.proto cachepubsub.proto auth.proto cacheping.proto vectorindex.proto token.proto leaderboard.proto webhook.proto store.proto
1 change: 1 addition & 0 deletions javascript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * as auth from './auth'
export * as token from './token'
export * as leaderboard from './leaderboard'
export * as webhook from './webhook'
export * as store from './store'

0 comments on commit f57c70e

Please sign in to comment.