From 0.50.x to 0.51.x we've moved the neeo-sdk cli to a separate project: @neeo/cli.
In 0.50.x we've moved towards splitting the SDK driver from the SDK server to make running multiple SDK drivers easier. See the Driver migration guide to 0.50.0 for details.
With the neeo-sdk cli (0.50.x) the setup looks like:
package.json
– your package definition and dependenciesdevices/index.js
– exports your drivers as mentioned above...
– the rest of your code
To make your driver @neeo/cli compatible:
- Update main to
"main": "devices/index.js",
in yourpackage.json
.
This means you can now move your main export to a different location if you would like to, all you have to do it update the main
property of your package.json
to the new location. This lets users of your driver (for example the @neeo/cli) know where to look for the devices you export.
Note: you should not add the @neeo/cli
package to dependencies of your driver. If you need it include it as a devDepencencies.
The CLI can then be run using ./node_modules/bin/neeo-cli
.