Use latest typescript and manually move `*_pb.js` files for the echo client (#1171)

This commit is contained in:
Eryu Xia 2021-11-18 19:32:55 +00:00 committed by GitHub
parent f1d863f2dc
commit b849db4dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,9 @@ WORKDIR /github/grpc-web/net/grpc/gateway/examples/echo/ts-example
RUN npm install && \
npm link grpc-web && \
npx tsc && \
# Since typescript@4.5.2, tsc has apparently stopped moving dependent js files into dist/ dir, so
# we'll move them manually.
mv *_pb.js dist/ && \
npx webpack && \
cp echotest.html /var/www/html && \
cp dist/main.js /var/www/html/dist

View File

@ -7,7 +7,7 @@
"grpc-web": "~1.3.0",
"jquery": "~3.5.1",
"mock-xmlhttprequest": "~2.0.0",
"typescript": "~4.4.4",
"typescript": "latest",
"webpack": "~4.43.0",
"webpack-cli": "~3.3.11"
}

View File

@ -37,6 +37,6 @@
"mocha": "~5.2.0",
"mock-xmlhttprequest": "~2.0.0",
"protractor": "~7.0.0",
"typescript": "~4.4.4"
"typescript": "latest"
}
}