From ff6635dd0618134903d11bb9294a6f733f383c64 Mon Sep 17 00:00:00 2001 From: Jakob Rosenberg Date: Wed, 6 Apr 2022 11:27:27 +0200 Subject: [PATCH] fix: use postinstall to install bindings with npm --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c59eaab..0420c3b 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "request": "^2.88.0", "rimraf": "^2.6.2", "safe-buffer": "^5.0.1", - "serialport": "^10.4.0", "slugify": "^1.3.4", "tar": ">=2.2.2", "telnet-client": "^0.16.1", @@ -58,9 +57,8 @@ }, "scripts": { "watch": "onchange '**/*.js' '**/*.html' '**/*.less' -- sh scripts/restart-atom.sh", - "@preinstall": "bindings-ccp needs to be preinstalled for Unix. Don't know why. : makes Windows ignore the command", - "preinstall": ":; cp preinstalled_modules node_modules -r", - "_postinstall": "node scripts/post-install.js", + "@postinstall": "apm cant install bindings-ccp on linux/mac, so we use npm", + "postinstall": "npm install serialport", "test-electron": "pwsh -nop -f ./test-electron/runtest.ps1", "download-native": "node scripts/download-binaries.js", "semantic-release": "semantic-release"