madchicken / homebridge-comelit-sb

Comelit Serial Bridge platform plugin for Homebridge
Apache License 2.0
2 stars 2 forks source link

Homebridge dependency warning #1

Closed oznu closed 4 years ago

oznu commented 4 years ago

Hi there,

We've noticed your plugin is using homebridge as a prod-dependency.

Homebridge should only be included in plugins as a dev-dependency and used for TypeScript types.

In the next release of we are changing Homebridge to only export types and const enums which can be safely used in your code and not result in Homebridge becoming a runtime dependency.

Please also make sure you are using TypeScript 3.8 or later.

You can test this out using the current beta of Homebridge:

npm install --save-dev homebridge@beta

For examples of how to use Homebridge in a plugin for types/enums only see: