matterbridge-zigbee2mqtt 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { exec } from 'child_process';
2
+
3
+ const command = process.platform === 'win32' ? 'npm link matterbridge' : 'sudo npm link matterbridge';
4
+
5
+ exec(command, (error, stdout, stderr) => {
6
+ if (error) {
7
+ console.error(`exec error: ${error}`);
8
+ return;
9
+ }
10
+ console.log(`stdout: ${stdout}`);
11
+ if (stderr) {
12
+ console.error(`stderr: ${stderr}`);
13
+ }
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-zigbee2mqtt",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Matterbridge zigbee2mqtt plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -52,14 +52,11 @@
52
52
  "dev:link": "npm link --save-dev matterbridge",
53
53
  "dev:install": "npm install --save-dev matterbridge",
54
54
  "dev:uninstall": "npm uninstall matterbridge && npm unlink matterbridge",
55
- "dev:installglobally": "npm install -g ./"
56
- },
57
- "peerDependencies": {
58
- "matterbridge": "^1.2.0"
55
+ "install": "node link-matterbridge-script.js"
59
56
  },
60
57
  "devDependencies": {
61
58
  "@stylistic/eslint-plugin": "^1.7.0",
62
- "@tsconfig/node-lts": "^20.1.1",
59
+ "@tsconfig/node-lts": "^20.1.2",
63
60
  "@types/node": "^20.11.30",
64
61
  "@typescript-eslint/eslint-plugin": "^7.3.1",
65
62
  "@typescript-eslint/parser": "^7.3.1",