mirror of https://github.com/grpc/grpc-web.git
Use latest typescript and manually move `*_pb.js` files for the echo client (#1171)
This commit is contained in:
parent
f1d863f2dc
commit
b849db4dfa
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,6 @@
|
|||
"mocha": "~5.2.0",
|
||||
"mock-xmlhttprequest": "~2.0.0",
|
||||
"protractor": "~7.0.0",
|
||||
"typescript": "~4.4.4"
|
||||
"typescript": "latest"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue