Replies: 2 comments
-
Yes, it is meant to be used as a library but I didn't configure it correctly so right now it is not really possible... To add it, the problem is that the public APIs are not defined yet. As you can see in Device.ts, my goal was to make MatterDevice the public object, but to use it tons of other classes need to be referenced... If you have a suggestion for the library Apis, let me know! |
Beta Was this translation helpful? Give feedback.
-
Hi Flavien, I create a PR to add MatterDevice in an index.ts, so can you use: You can use it before I commit it to make sure that it is working for your needs:
If things don't work, modify index.ts or node-matter package.json and send me a PR with the modifications. Sorry, I have little time right now to support further on this. However, keep in mind the node-matter public APIs are far from being stable, so you might to update your code for new versions... |
Beta Was this translation helpful? Give feedback.
-
Is this package meant to be used as a library (as opposed to a command line tool)?
Right now I have to do:
It would be simpler if I could do:
Is there a way to package it this way for NPM?
Beta Was this translation helpful? Give feedback.
All reactions