diff --git a/package.json b/package.json index 6c47d14..570bbad 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "typescript": "^5.9.3", "typescript-eslint": "^8.46.4" }, + "type": "module", "homepage": "https://github.com/dtwardow/homebridge-multi-tap-switch#readme", "author": "Dennis Twardowsky " } diff --git a/src/settings.ts b/src/settings.ts index cbc79e3..c9eb624 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,5 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const package_config = require('../package.json'); +import package_config from '../package.json'; /** * This is the name of the platform that users will use to register the plugin in the Homebridge config.json