Skip to content

Commit

Permalink
add version.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Nov 13, 2024
1 parent da89bcb commit 170ca4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/javascript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
src/gen
!src/gen/version.d.ts
!src/gen/dts/version.d.ts
2 changes: 1 addition & 1 deletion packages/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"generate:version": "pnpm generate:version:esm && pnpm generate:version:cjs",
"generate:proto:esm": "protoc --es_out src/gen/esm --es_opt target=js -I=../../protobufs ../../protobufs/livekit_*.proto",
"generate:proto:cjs": "protoc --es_out src/gen/cjs --es_opt target=js,js_import_style=legacy_commonjs -I=../../protobufs ../../protobufs/livekit_*.proto",
"generate:proto:dts": "mkdir -p src/gen/dts && protoc --es_out src/gen/dts --es_opt target=dts -I=../../protobufs ../../protobufs/livekit_*.proto",
"generate:proto:dts": "protoc --es_out src/gen/dts --es_opt target=dts -I=../../protobufs ../../protobufs/livekit_*.proto",
"generate:proto": "pnpm generate:proto:esm && pnpm generate:proto:cjs && pnpm generate:proto:dts",
"build": "pnpm generate:version && pnpm generate:proto"
},
Expand Down
1 change: 1 addition & 0 deletions packages/javascript/src/gen/dts/version.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const version: string;
1 change: 1 addition & 0 deletions packages/javascript/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export type * from "./gen/dts/livekit_room_pb.d.ts";
export type * from "./gen/dts/livekit_rtc_pb.d.ts";
export type * from "./gen/dts/livekit_sip_pb.d.ts";
export type * from "./gen/dts/livekit_webhook_pb.d.ts";
export type * from "./gen/dts/version.d.ts";

0 comments on commit 170ca4b

Please sign in to comment.