Skip to content

Commit

Permalink
Hotfix: Exports plugins under "janode/plugins"
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Jan 18, 2022
1 parent 2bf13fd commit d9681c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Read the examples [on the git repo](https://github.com/meetecho/janode) to have
```js
import Janode from 'janode';
const { Logger } = Janode;
import EchoTestPlugin from 'janode/src/plugins/echotest-plugin.js';
import EchoTestPlugin from 'janode/plugins/echotest';

const connection = await Janode.connect({
is_admin: false,
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
"url": "https://github.com/meetecho/janode/issues"
},
"license": "ISC",
"exports": "./src/janode.js",
"exports": {
".": "./src/janode.js",
"./plugins/audiobridge": "./src/plugins/audiobridge-plugin.js",
"./plugins/echotest": "./src/plugins/echotest-plugin.js",
"./plugins/streaming": "./src/plugins/streaming-plugin.js",
"./plugins/videoroom": "./src/plugins/videoroom-plugin.js"
},
"files": [
"src/*.js",
"src/utils/*.js",
Expand Down

0 comments on commit d9681c9

Please sign in to comment.