Skip to content

Commit ccd4e9f

Browse files
committed
add support to reflect using v1 protocol
1 parent f034fb4 commit ccd4e9f

16 files changed

+5649
-1386
lines changed

.eslintignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
build/src/reflection_*
2-
src/reflection_*
1+
build/src/generated/v1/reflection_*
2+
build/src/generated/v1alpha/reflection_*
3+
src/generated/v1/reflection_*
4+
src/generated/v1alpha/reflection_*

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@
4444
"prepare": "yarn run compile",
4545
"pretest": "yarn run compile && yarn run fix",
4646
"posttest": "yarn run check",
47-
"protoc": "grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src --grpc_out=grpc_js:./src --ts_out=grpc_js:./src --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1alpha reflection.proto",
48-
"build": "yarn run compile && yarn run fix && yarn run check"
47+
"protoc:v1alpha": "mkdir -p ./src/generated/v1alpha && grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src/generated/v1alpha --grpc_out=grpc_js:./src/generated/v1alpha --ts_out=grpc_js:./src/generated/v1alpha --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1alpha reflection.proto",
48+
"protoc:v1": "mkdir -p ./src/generated/v1 && grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src/generated/v1 --grpc_out=grpc_js:./src/generated/v1 --ts_out=grpc_js:./src/generated/v1 --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1 reflection.proto",
49+
"protoc": "yarn protoc:v1alpha && yarn protoc:v1",
50+
"build": "yarn run compile && yarn run fix && yarn run check",
51+
"prettier": "prettier --write src"
4952
},
5053
"files": [
5154
"build",

0 commit comments

Comments
 (0)