diff --git a/.travis.yml b/.travis.yml index fbc8be0eb..99db04413 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,11 @@ node_js: - "v0.12.7" - "v4" script: + # Install peerDependencies on > npm3 + # When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies + - if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install bitcore-lib@^0.13.13; fi - npm run regtest - npm run test - npm run jshint after_success: - - npm run coveralls \ No newline at end of file + - npm run coveralls diff --git a/package.json b/package.json index 4e02b7cf0..786668c56 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "dependencies": { "async": "^1.3.0", "bitcoind-rpc": "^0.6.0", - "bitcore-lib": "^0.13.13", "body-parser": "^1.13.3", "colors": "^1.1.2", "commander": "^2.8.1", @@ -78,5 +77,8 @@ "rimraf": "^2.4.2", "sinon": "^1.15.4" }, + "peerDependencies": { + "bitcore-lib": "~0.13.13" + }, "license": "MIT" }