plc-checkweigher 1.12.0 → 1.13.0
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/bin/cli.js +2 -1
- package/package.json +4 -1
package/bin/cli.js
CHANGED
|
@@ -88,7 +88,8 @@ function showAccessDenied() {
|
|
|
88
88
|
console.log(` ${R}⚠ Please contact administrator for access${NC}`);
|
|
89
89
|
console.log('');
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
// Exit 0 when invoked by npm postinstall so the install is not marked failed
|
|
92
|
+
process.exit(process.env.npm_lifecycle_event === 'postinstall' ? 0 : 1);
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
// ── Argument parsing ──────────────────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plc-checkweigher",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "One-command installer for the PLC Check-Weigher system on Raspberry Pi (PREEMPT_RT kernel, Python stack, WiFi, SMB, systemd RT services)",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"postinstall": "node bin/cli.js"
|
|
7
|
+
},
|
|
5
8
|
"bin": {
|
|
6
9
|
"plc-checkweigher": "bin/cli.js"
|
|
7
10
|
},
|