@camera.ui/camera-ui-homekit 0.0.44 → 0.0.45
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.
- package/bundle.zip +0 -0
- package/package.json +2 -3
- package/scripts/install-optional-deps.cjs +0 -17
package/bundle.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "HomeKit",
|
|
3
3
|
"name": "@camera.ui/camera-ui-homekit",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.45",
|
|
5
5
|
"description": "Connect your Apple HomeKit devices for seamless smart home control. Automate and manage your HomeKit ecosystem.",
|
|
6
6
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "rimraf dist && tsc",
|
|
11
|
-
"bundle": "npm run format && npm run lint:fix && npm run build && cui bundle
|
|
11
|
+
"bundle": "npm run format && npm run lint:fix && npm run build && cui bundle",
|
|
12
12
|
"bundle:dev": "npm run format && npm run lint:fix && npm run build && cross-env MODE=development cui bundle",
|
|
13
13
|
"format": "prettier --write \"src/\" --ignore-unknown --no-error-on-unmatched-pattern",
|
|
14
14
|
"install-updates": "npm i --save",
|
|
15
15
|
"lint": "eslint .",
|
|
16
16
|
"lint:fix": "eslint --fix .",
|
|
17
|
-
"postinstall": "node scripts/install-optional-deps.cjs",
|
|
18
17
|
"prepublishOnly": "node -e \"if(!process.env.SAFE_PUBLISH){console.error('Error: Please use @camera.ui/cli to publish the plugin:\\n npm run publish:alpha\\n npm run publish:beta\\n npm run publish:latest\\n');process.exit(1)}\"",
|
|
19
18
|
"publish:alpha": "npm i --save && npm run bundle && cui publish --alpha",
|
|
20
19
|
"publish:beta": "npm i --save && npm run bundle && cui publish --beta",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const { execSync } = require('child_process');
|
|
2
|
-
|
|
3
|
-
function isElectron() {
|
|
4
|
-
return process.env.CAMERA_UI_RUNMODE === 'electron';
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
if (isElectron()) {
|
|
8
|
-
console.log('Running in Electron environment. Installing chacha...');
|
|
9
|
-
try {
|
|
10
|
-
execSync('npm install chacha@^2.1.0', { stdio: 'inherit' });
|
|
11
|
-
console.log('chacha installed successfully.');
|
|
12
|
-
} catch (error) {
|
|
13
|
-
console.error('Failed to install chacha:', error);
|
|
14
|
-
}
|
|
15
|
-
} else {
|
|
16
|
-
console.log('Not running in Electron environment. Skipping chacha installation.');
|
|
17
|
-
}
|