Skip to content

Commit 49dd938

Browse files
committed
chore: changed grpc dependency for @grpc/grpc-js, and protos are now generate using grpc_tools_node_protoc
1 parent 40a3138 commit 49dd938

18 files changed

+19
-12942
lines changed

generate.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"author": "",
1414
"license": "ISC",
1515
"devDependencies": {
16-
"grpc-tools": "1.9.1",
16+
"grpc-tools": "1.9.0",
1717
"protobufjs": "6.10.1",
1818
"tap": "14.10.8"
1919
},
2020
"dependencies": {
2121
"btoa": "1.2.1",
2222
"google-protobuf": "3.13.0",
23-
"grpc": "1.24.4"
23+
"@grpc/grpc-js": "1.2.0"
2424
},
2525
"repository": {
2626
"type": "git",

pb_generator.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set -e
2+
set -x
3+
4+
# ./node_modules/@grpc/grpc-js/packages/grpc-tools/bin/protoc.js \
5+
# --proto_path=proto \
6+
# --proto_path=./node_modules/protobufjs \
7+
# --js_out=import_style=commonjs,binary:proto \
8+
# --plugin==protc-gen-grpc=./node_modules/@grpc/grpc-js/packages/grpc-tools/bin/grpc_node_plugin \
9+
# --grpc_out=import_style=commonjs,binary:proto \
10+
# proto/schema.proto \
11+
# node_modules/protobufjs/google/**/*.proto
12+
13+
grpc_tools_node_protoc \
14+
--js_out=import_style=commonjs,binary:./protos \
15+
--grpc_out=grpc_js:./protos \
16+
-I=./protos ./protos/*.proto

proto/google/api/annotations_grpc_pb.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

proto/google/api/annotations_pb.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

proto/google/api/http_grpc_pb.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)