Skip to content

Commit

Permalink
Simplify exports paths and re-export BigInt helper (#642)
Browse files Browse the repository at this point in the history
* Simplify exports paths

* changeset

* Re-export proto bigint helper
  • Loading branch information
lukasIO authored Mar 11, 2024
1 parent 47adc43 commit 61bb42e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-pets-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/protocol": patch
---

Fix granular export paths
30 changes: 3 additions & 27 deletions packages/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,9 @@
"types": "./src/index.d.ts",
"default": "./src/index.js"
},
"./models": {
"types": "./src/gen/livekit_models.pb.d.ts",
"default": "./src/gen/livekit_models.pb.js"
},
"./room": {
"types": "./src/gen/livekit_room.pb.d.ts",
"default": "./src/gen/livekit_room.pb.js"
},
"./sip": {
"types": "./src/gen/livekit_sip.pb.d.ts",
"default": "./src/gen/livekit_sip.pb.js"
},
"./egress": {
"types": "./src/gen/livekit_egress.pb.d.ts",
"default": "./src/gen/livekit_egress.pb.js"
},
"./ingress": {
"types": "./src/gen/livekit_ingress.pb.d.ts",
"default": "./src/gen/livekit_ingress.pb.js"
},
"./agent": {
"types": "./src/gen/livekit_agent.pb.d.ts",
"default": "./src/gen/livekit_agent.pb.js"
},
"./webhook": {
"types": "./src/gen/livekit_webhook.pb.d.ts",
"default": "./src/gen/livekit_webhook.pb.js"
"./*": {
"types": "./src/gen/livekit_*_pb.d.ts",
"default": "./src/gen/livekit_*_pb.js"
}
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/javascript/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * from "./gen/livekit_webhook_pb.js";
export * from "./gen/livekit_egress_pb.js";
export * from "./gen/livekit_ingress_pb.js";
export * from "./gen/livekit_sip_pb.js";
export { protoInt64 } from "@bufbuild/protobuf";
1 change: 1 addition & 0 deletions packages/javascript/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export * from "./gen/livekit_webhook_pb.js";
export * from "./gen/livekit_egress_pb.js";
export * from "./gen/livekit_ingress_pb.js";
export * from "./gen/livekit_sip_pb.js";
export { protoInt64 } from "@bufbuild/protobuf";

0 comments on commit 61bb42e

Please sign in to comment.