From 85115342ac7c78955f4c9a01dc6ded7fba36d41b Mon Sep 17 00:00:00 2001 From: Adam Simonicek Date: Sat, 4 Mar 2023 12:48:43 -0500 Subject: [PATCH] Added package version --- src/settings.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/settings.ts b/src/settings.ts index 0071b16..4d8a1be 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -6,4 +6,10 @@ export const PLATFORM_NAME = 'Hubspace'; /** * This must match the name of your plugin as defined the package.json */ -export const PLUGIN_NAME = 'homebridge-hubspace'; \ No newline at end of file +export const PLUGIN_NAME = 'homebridge-hubspace'; + +/** + * Current NPM package version + */ +// eslint-disable-next-line @typescript-eslint/no-var-requires +export const PACKAGE_VERSION: string = require('../package.json').version; \ No newline at end of file