diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1791869..58a6bae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,4 +59,4 @@ jobs: - name: Release and Publish run: | - pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=agora-rtc-sdk-ng-fake.zip + pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=[agora-rtc-sdk-ng-fake.zip,dist/fake-agora-rtc.js] diff --git a/src/index.ts b/src/index.ts index 4d06b9a..d2a9f7b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +import { FakeRTCClient } from "./client"; import { createFakeAgoraRTC } from "./top"; import { FakeCameraVideoTrack, FakeMicrophoneAudioTrack } from "./tracks"; @@ -6,10 +7,13 @@ export * from "./eventemitter"; export * from "./client"; export * from "./version"; -export default createFakeAgoraRTC({ +export const FakeAgoraRTC = createFakeAgoraRTC({ setAppType(): void { // }, createMicrophoneAudioTrack: async () => FakeMicrophoneAudioTrack.create(), createCameraVideoTrack: async () => FakeCameraVideoTrack.create(), + createClient: () => FakeRTCClient.create(), }); + +export default FakeAgoraRTC;