Skip to content

Commit

Permalink
RSDK-5407: fix RPC web build and add missing public exports (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous authored Dec 26, 2023
1 parent 25a24ec commit abab544
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rpc/examples/echo/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rpc/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/rpc",
"version": "0.2.0",
"version": "0.2.1",
"license": "Apache-2.0",
"dependencies": {
"@improbable-eng/grpc-web": "^0.13.0",
Expand Down Expand Up @@ -38,7 +38,7 @@
"typecheck": "tsc --noEmit",
"lint": "eslint '**/*.{ts,js,cjs}' --quiet",
"format": "prettier --write '**/*.{ts,js,cjs}'",
"build": "vite build",
"build": "vite build && tsc --project tsconfig.build.json",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion rpc/js/src/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class authenticatedTransport implements grpc.Transport {
}
}

interface WebRTCConnection {
export interface WebRTCConnection {
transportFactory: grpc.TransportFactory;
peerConnection: RTCPeerConnection;
}
Expand Down
10 changes: 9 additions & 1 deletion rpc/js/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
export { dialDirect, dialWebRTC, type Credentials } from './dial';
export {
dialDirect,
dialWebRTC,
type Credentials,
type DialOptions,
type DialWebRTCOptions,
type WebRTCConnection,
} from './dial';

export { ConnectionClosedError, GRPCError } from './errors';

0 comments on commit abab544

Please sign in to comment.