Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
211 changes: 209 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"scripts": {
"lint": "eslint",
"lint:fix": "eslint --fix && prettier -w .",
"test": "prettier --check src && tsc --noEmit && npm run lint && tsx src/test/integration.ts",
"build": "tsc -p .",
"test": "prettier --check src && tsgo --noEmit && npm run lint && tsx src/test/integration.ts",
"build": "tsgo",
"postbuild": "esm2cjs --in dist-esm --out dist-cjs -l error -t node20",
"prepare": "npm run build",
"prepublishOnly": "rm -rf dist-* && npm run build"
Expand All @@ -63,6 +63,7 @@
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"@typescript/native-preview": "^7.0.0-dev.20250617.1",
"alcalzone-shared": "^5.0.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -72,7 +73,6 @@
"prettier": "^3.0.0",
"semver": "^7.5.4",
"tsx": "^4.19.2",
"typescript": "^5.3.3",
"zwave-js": "^15.3.0"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { WebSocketServer, type WebSocket } from "ws";
import {
getResponder,
CiaoService,
Protocol,
type Protocol,
Responder,
} from "@homebridge/ciao";
import {
Expand Down Expand Up @@ -540,7 +540,7 @@ export class ZwavejsServer extends EventEmitter {
name: this.driver.controller.homeId!.toString(),
port,
type: dnssdServiceType,
protocol: Protocol.TCP,
protocol: "tcp" as Protocol,
txt: getVersionData(this.driver),
});
this.service.advertise().then(() => {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"declaration": true,
"outDir": "dist-esm",
"rootDir": "src",
"resolveJsonModule": true
"resolveJsonModule": true,
"isolatedModules": true
}
}