Skip to content

Commit

Permalink
fix: fix the way we do exports (webex#19)
Browse files Browse the repository at this point in the history
* fix: fix the way we do exports

* fix: fix path in api-extractor file
  • Loading branch information
bbaldino authored and GitHub Enterprise committed Aug 18, 2021
1 parent 4c9778b commit cc8cc85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"enabled": true,
"untrimmedFilePath": "<projectFolder>/docs/temp/<unscopedPackageName>.d.ts"
},
"mainEntryPointFilePath": "./dist/index.d.ts",
"mainEntryPointFilePath": "./dist/types/index.d.ts",
"projectFolder": ".",

"messages": {
Expand Down
9 changes: 7 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export * as media from './media';
export * as peerConnection from './peer-connection';
// Note: This (importing and then exporting media) is a workaround for doc extraction, which doesn't
// support 'export * as ___ from ___' yet.
import * as media from './media';

export { media };

export * from './peer-connection';

0 comments on commit cc8cc85

Please sign in to comment.