homebridge-prometheus-exporter/package.json
Lars Strojny f6bc8ca90c
Use code generation for UUID service map (#14)
Instead of introspecting *hap-nodejs* at runtime for UUID to service
mapping, generate the map during build time.
2022-11-10 11:07:31 +01:00

65 lines
2.6 KiB
JSON

{
"name": "homebridge-prometheus-exporter",
"version": "0.0.7",
"description": "Prometheus exporter for homebridge accessories.",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/lstrojny/homebridge-prometheus-exporter.git"
},
"bugs": {
"url": "https://github.com/lstrojny/homebridge-prometheus-exporter/issues"
},
"engines": {
"node": ">=14.18.1",
"homebridge": ">=1.3.5"
},
"main": "dist/src/index.js",
"scripts": {
"lint": "ifNotCi() { test \"$CI\" && echo \"$2\" || echo \"$1\"; }; `npm bin`/tsc --noEmit && `npm bin`/prettier --ignore-path=.gitignore `ifNotCi --write --check` '**/**.{ts,js,json}' && `npm bin`/eslint `ifNotCi --fix` --ignore-path=.gitignore '**/**.{ts,js,json}'",
"start": "npm run build && npm run link && nodemon",
"test": "ifNotCi() { test \"$CI\" && echo \"$2\" || echo \"$1\"; }; npm run code-generation && `npm bin`/jest `ifNotCi --watchAll`",
"link": "npm install --no-save file:///$PWD/",
"build": "rimraf ./dist && npm run code-generation && tsc",
"code-generation": "./code-generation/hap-gen.js",
"prepublishOnly": "npm run code-generation && npm run lint && npm run build",
"release": "release() { test \"$1\" && test `git rev-parse --abbrev-ref HEAD` == \"develop\" && npm run code-generation && git pull origin develop --rebase && npm version $1 && npm publish && git push origin develop && git push origin --tags; }; release"
},
"keywords": [
"homebridge-plugin",
"prometheus",
"monitoring",
"homekit"
],
"devDependencies": {
"@jest/globals": "^29.3.0",
"@types/node": "^18.11.9",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"eslint": "^8.0.1",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"hap-nodejs": "^0.10.4",
"homebridge": "^1.3.5",
"homebridge-cmdswitch2": "^0.2.10",
"jest": "^29.3.0",
"json-schema-to-zod": "^0.2.0",
"nodemon": "^2.0.13",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"supertest": "^6.3.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.3.0",
"typescript": "^4.4.4"
},
"dependencies": {
"fastify": "^4.9.2",
"hap-node-client": "^0.1.25",
"zod": "^3.19.1"
},
"overrides": {
"jest-mock": "29.2"
}
}