diff --git a/.travis.yml b/.travis.yml index 4ad0c9c370..d7774aaad5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,7 @@ matrix: before_install: # download node if testing x86 architecture +- nvm install $TRAVIS_NODE_VERSION - > if [[ "$ARCH" == "x86" ]]; then BASE_URL=$(node -p "'https://nodejs.org/dist/' + process.version"); @@ -48,9 +49,7 @@ before_install: wget $BASE_URL/$X86_FILE.tar.gz; tar -xf $X86_FILE.tar.gz; nvm deactivate; - export PATH=$X86_FILE/bin:$PATH; - else - nvm install $TRAVIS_NODE_VERSION + export PATH=`pwd`/$X86_FILE/bin:$PATH; fi; # use g++-4.8 on Linux diff --git a/lib/bindings/linux-list.js b/lib/bindings/linux-list.js index cd7764d7c7..ce7751849f 100644 --- a/lib/bindings/linux-list.js +++ b/lib/bindings/linux-list.js @@ -1,7 +1,7 @@ 'use strict'; const childProcess = require('child_process'); -const Readline = require('parser-readline'); +const Readline = require('@serialport/parser-readline'); // get only serial port names function checkPathOfDevice(path) { diff --git a/lib/parsers.js b/lib/parsers.js index 941fad8e0e..78c7781a50 100644 --- a/lib/parsers.js +++ b/lib/parsers.js @@ -27,10 +27,10 @@ port.write('ROBOT PLEASE RESPOND\n'); */ module.exports = { - ByteLength: require('parser-byte-length'), - CCTalk: require('parser-cctalk'), - Delimiter: require('parser-delimiter'), - Readline: require('parser-readline'), - Ready: require('parser-ready'), - Regex: require('parser-regex') + ByteLength: require('@serialport/parser-byte-length'), + CCTalk: require('@serialport/parser-cctalk'), + Delimiter: require('@serialport/parser-delimiter'), + Readline: require('@serialport/parser-readline'), + Ready: require('@serialport/parser-ready'), + Regex: require('@serialport/parser-regex') }; diff --git a/package.json b/package.json index 53a51ab6c5..b409d94ccd 100644 --- a/package.json +++ b/package.json @@ -60,13 +60,13 @@ "commander": "^2.13.0", "debug": "^3.1.0", "nan": "^2.9.2", - "parser-byte-length": "^1.0.2", - "parser-cctalk": "^1.0.2", - "parser-delimiter": "^1.0.2", - "parser-readline": "^1.0.2", - "parser-ready": "^1.0.2", - "parser-regex": "^1.0.2", - "prebuild-install": "^2.5.3", + "@serialport/parser-byte-length": "^1.0.5", + "@serialport/parser-cctalk": "^1.0.5", + "@serialport/parser-delimiter": "^1.0.5", + "@serialport/parser-readline": "^1.0.5", + "@serialport/parser-ready": "^1.0.5", + "@serialport/parser-regex": "^1.0.5", + "prebuild-install": "^4.0.0", "promirepl": "^1.0.1", "prompt-list": "^3.1.2", "safe-buffer": "^5.0.1" @@ -89,7 +89,7 @@ "mocha": "^5.1.0", "prebuild": "^7.4.0", "proxyquire": "^2.0.0", - "sinon": "^5.0.0" + "sinon": "^5.0.4" }, "engines": { "node": ">=4.0.0"