homebridge-adt-pulse 3.4.12 → 3.4.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.js +4 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-adt-pulse",
3
3
  "displayName": "Homebridge ADT Pulse",
4
- "version": "3.4.12",
4
+ "version": "3.4.13",
5
5
  "description": "Homebridge security system platform for ADT Pulse",
6
6
  "main": "./build/index.js",
7
7
  "exports": "./build/index.js",
package/postinstall.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { execSync } from 'node:child_process';
2
2
 
3
- if (process.env.npm_config_omit !== 'dev') {
3
+ const isGlobal = process.env.npm_config_global === 'true';
4
+ const isDevOmitted = process.env.npm_config_omit === 'dev';
5
+
6
+ if (!isGlobal && !isDevOmitted) {
4
7
  console.info('Running post-install commands ...');
5
8
 
6
9
  execSync('npm run build', {