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:
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:
For examples of how to use Homebridge in a plugin for types/enums only see: