forked from Luligu/matterbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 9.96 KB
/
package.json
File metadata and controls
214 lines (214 loc) · 9.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"name": "matterbridge",
"version": "3.4.6",
"description": "Matterbridge plugin manager for Matter",
"author": "https://github.com/Luligu",
"license": "Apache-2.0",
"homepage": "https://matterbridge.io/",
"repository": {
"type": "git",
"url": "git+https://github.com/Luligu/matterbridge.git"
},
"bugs": {
"url": "https://github.com/Luligu/matterbridge/issues"
},
"funding": {
"type": "buymeacoffee",
"url": "https://www.buymeacoffee.com/luligugithub"
},
"keywords": [
"matterbridge",
"homebridge",
"bridge",
"plugin",
"frontend",
"matter.js",
"matter-node.js",
"matter",
"matterprotocol",
"iot",
"smarthome",
"connectedthings",
"hap",
"homekit",
"siri",
"google-home",
"alexa",
"homeassistant",
"smartthings",
"ewelink"
],
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"matterbridge": "bin/matterbridge.js",
"mb_mdns": "bin/mb_mdns.js",
"mb_coap": "bin/mb_coap.js"
},
"engines": {
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
},
"workspaces": [
"packages/*"
],
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./devices": {
"import": "./dist/devices/export.js",
"types": "./dist/devices/export.d.ts"
},
"./clusters": {
"import": "./dist/clusters/export.js",
"types": "./dist/clusters/export.d.ts"
},
"./utils": {
"import": "./dist/utils/export.js",
"types": "./dist/utils/export.d.ts"
},
"./jestutils": {
"import": "./dist/jestutils/export.js",
"types": "./dist/jestutils/export.d.ts"
},
"./logger": {
"import": "./dist/logger/export.js",
"types": "./dist/logger/export.d.ts"
},
"./storage": {
"import": "./dist/storage/export.js",
"types": "./dist/storage/export.d.ts"
},
"./matter": {
"import": "./dist/matter/export.js",
"types": "./dist/matter/export.d.ts"
},
"./matter/devices": {
"import": "./dist/matter/devices.js",
"types": "./dist/matter/devices.d.ts"
},
"./matter/clusters": {
"import": "./dist/matter/clusters.js",
"types": "./dist/matter/clusters.d.ts"
},
"./matter/behaviors": {
"import": "./dist/matter/behaviors.js",
"types": "./dist/matter/behaviors.d.ts"
},
"./matter/endpoints": {
"import": "./dist/matter/endpoints.js",
"types": "./dist/matter/endpoints.d.ts"
},
"./matter/types": {
"import": "./dist/matter/types.js",
"types": "./dist/matter/types.d.ts"
}
},
"scripts": {
"build": "tsc --project tsconfig.json",
"buildProduction": "tsc --project tsconfig.production.json",
"cleanBuild": "npx shx rm -rf tsconfig.tsbuildinfo dist && npm run build",
"cleanBuildProduction": "npx shx rm -rf tsconfig.tsbuildinfo dist && npm run buildProduction",
"fetch:chip": "node scripts/fetch-chip.mjs",
"watch": "tsc --project tsconfig.json --watch",
"start": "node ./dist/cli.js",
"start:bridge": "node ./dist/cli.js --bridge",
"start:childbridge": "node ./dist/cli.js --childbridge",
"start:inspect": "node --inspect=0.0.0.0:9229 ./dist/cli.js --debug --trace --loader",
"start:gc": "node --expose-gc ./dist/cli.js --debug --trace --loader",
"start:tracegc": "node --expose_gc --trace_gc ./dist/cli.js --debug --trace --loader",
"start:tracegcverbose": "node --expose_gc --trace_gc_verbose ./dist/cli.js --debug --trace --loader",
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --maxWorkers=100%",
"test:watch": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --watch --maxWorkers=100%",
"test:verbose": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --verbose --maxWorkers=100%",
"test:coverage": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest --coverage --maxWorkers=100% --coverageThreshold=\"{ \\\"global\\\": { \\\"lines\\\": 100, \\\"functions\\\": 100 } }\"",
"test:vitest": "vitest run",
"test:vitest:watch": "vitest --reporter verbose",
"test:vitest:verbose": "vitest run --reporter verbose",
"test:vitest:coverage": "vitest run --reporter verbose --coverage",
"lint": "eslint --max-warnings=0 .",
"lint:fix": "eslint --fix --max-warnings=0 .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"clean": "npx shx rm -rf tsconfig.tsbuildinfo dist coverage jest temp package-lock.json npm-shrinkwrap.json node_modules/* node_modules/.[!.]* node_modules/..?*",
"reset": "npm run clean && npm install && npm run build && (npm link || sudo npm link) && shx chmod +x bin/matterbridge.js bin/mb_mdns.js bin/mb_coap.js && npx jest --clearCache",
"git:status": "git status && git branch -vv && git diff dev origin/dev && git stash list",
"git:remote": "git remote -v && git remote show origin",
"git:hardreset:main": "git fetch origin && git checkout main && git reset --hard origin/main",
"git:hardreset:dev": "git fetch origin && git checkout dev && git reset --hard origin/dev",
"git:hardreset:edge": "git fetch origin && git checkout edge && git reset --hard origin/edge",
"runMeBeforePublish": "npm run lint && npm run format && npm run build && npm run test",
"updateHtmls": "node ./scripts/marked.mjs",
"prepublishOnly": "npm pkg delete devDependencies scripts && npx shx rm -rf node_modules/* node_modules/.[!.]* node_modules/..?* && npm install --omit=dev && npm shrinkwrap",
"prepublishOnlyProduction": "npm run cleanBuildProduction && npm pkg delete devDependencies scripts types && npx shx rm -rf node_modules/* node_modules/.[!.]* node_modules/..?* && npm install --omit=dev && npm shrinkwrap",
"npmPack": "npx shx cp package.json package.json.backup && npm run prepublishOnlyProduction && npm pack && npx shx cp package.json.backup package.json && npx shx rm -f package.json.backup && npm run reset",
"npmPublishTagDev": "npx shx cp package.json package.json.backup && npm run prepublishOnlyProduction && npm publish --tag dev && npx shx cp package.json.backup package.json && npx shx rm -f package.json.backup && npm run reset",
"npmPublishTagEdge": "npx shx cp package.json package.json.backup && npm run prepublishOnlyProduction && npm publish --tag edge && npx shx cp package.json.backup package.json && npx shx rm -f package.json.backup && npm run reset",
"npmPublishTagLatest": "npx shx cp package.json package.json.backup && npm run prepublishOnlyProduction && npm publish --tag latest && npx shx cp package.json.backup package.json && npx shx rm -f package.json.backup && npm run reset",
"checkDependencies": "npx npm-check-updates",
"updateDependencies": "npx npm-check-updates -u && npm run reset",
"updateMatter:latest": "npm install --save-exact @matter/main@latest && npm install && npm run reset",
"updateMatter:dev": "npm install --save-exact @matter/main@dev && npm install && npm run reset",
"updateMatter:loc": "npm install ../matter.js/packages/matter.js && npm install && npm run reset",
"install:dependencies": "npm install --save-exact @matter/main archiver express glob multer node-ansi-logger node-persist-manager ws",
"install:scripts": "npm install --save-dev --save-exact npm-check-updates shx cross-env marked",
"install:typescript": "npm install --save-dev --save-exact typescript @types/node @types/express @types/ws",
"install:eslint": "npm install --save-dev --save-exact eslint @eslint/js typescript-eslint eslint-plugin-import eslint-plugin-n eslint-plugin-promise eslint-plugin-jsdoc",
"install:prettier": "npm install --save-dev --save-exact prettier eslint-config-prettier eslint-plugin-prettier",
"install:jest": "npm install --save-dev --save-exact jest ts-jest @types/jest @jest/globals eslint-plugin-jest",
"install:vitest": "npm install --save-dev --save-exact vitest @vitest/coverage-v8 @vitest/eslint-plugin",
"buildAll": "npm --workspaces run build",
"lintAll": "npm --workspaces run lint",
"testAll": "npm --workspaces run test",
"docker:build:local:latest": "docker build -f docker/Dockerfile.main -t matterbridge:latest .",
"docker:run:local:latest": "docker run --rm -it --name matterbridge-latest matterbridge:latest",
"docker:build:local:dev": "docker build -f docker/Dockerfile.dev -t matterbridge:dev .",
"docker:run:local:dev": "docker run --rm -it --name matterbridge-dev matterbridge:dev",
"docker:build:local:ubuntu": "docker build -f docker/Dockerfile.ubuntu -t matterbridge:ubuntu .",
"docker:run:local:ubuntu": "docker run --rm -it --name matterbridge-ubuntu matterbridge:ubuntu",
"docker:build:local:alpine": "docker build -f docker/Dockerfile.alpine -t matterbridge:alpine .",
"docker:run:local:alpine": "docker run --rm -it --name matterbridge-alpine matterbridge:alpine"
},
"dependencies": {
"@matter/main": "0.15.6",
"archiver": "7.0.1",
"express": "5.2.1",
"glob": "13.0.0",
"multer": "2.0.2",
"node-ansi-logger": "3.1.1",
"node-persist-manager": "2.0.0",
"ws": "8.18.3"
},
"devDependencies": {
"@eslint/js": "9.39.2",
"@jest/globals": "30.2.0",
"@types/archiver": "7.0.0",
"@types/express": "5.0.6",
"@types/jest": "30.0.0",
"@types/multer": "2.0.0",
"@types/node": "25.0.3",
"@types/ws": "8.18.1",
"@vitest/coverage-v8": "4.0.16",
"@vitest/eslint-plugin": "1.6.4",
"cross-env": "10.1.0",
"eslint": "9.39.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jest": "29.12.0",
"eslint-plugin-jsdoc": "61.5.0",
"eslint-plugin-n": "17.23.1",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-promise": "7.2.1",
"jest": "30.2.0",
"marked": "17.0.1",
"npm-check-updates": "19.2.0",
"prettier": "3.7.4",
"shx": "0.4.0",
"ts-jest": "29.4.6",
"typescript": "5.9.3",
"typescript-eslint": "8.51.0",
"vitest": "4.0.16"
}
}