Skip to content

Commit

Permalink
Generate .d.ts files for node grpc services
Browse files Browse the repository at this point in the history
  • Loading branch information
esilkensen committed Aug 31, 2019
1 parent 37ab980 commit 474d38a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RUN set -ex && apk --update --no-cache add \

# Add TypeScript support

RUN npm i -g ts-protoc-gen@0.10.0
RUN npm i -g ts-protoc-gen@0.11.0

COPY --from=build /tmp/grpc/bins/opt/grpc_* /usr/local/bin/
COPY --from=build /tmp/grpc/bins/opt/protobuf/protoc /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion all/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ if [[ $GEN_DOCS == true ]]; then
fi

if [[ $GEN_TYPESCRIPT == true ]]; then
GEN_STRING="$GEN_STRING --ts_out=$OUT_DIR"
GEN_STRING="$GEN_STRING --ts_out=service=grpc-node:$OUT_DIR"
fi

LINT_STRING=''
Expand Down
2 changes: 1 addition & 1 deletion all/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ testGeneration() {
if [[ "$extra_args" == *"--with-typescript"* ]]; then
# Test that we have generated the .d.ts files.
ts_file_count=$(find $expected_output_dir -type f -name "*.d.ts" | wc -l)
if [ $ts_file_count -eq 0 ]; then
if [ $ts_file_count -ne 2 ]; then
echo ".d.ts files were not generated in $expected_output_dir"
exit 1
fi
Expand Down

0 comments on commit 474d38a

Please sign in to comment.