From b2347d07fdf5afaf04441e73ed84daa66fd01291 Mon Sep 17 00:00:00 2001 From: John Dean Date: Sat, 25 Mar 2017 17:45:38 -0500 Subject: [PATCH] Install peerDependencies conditionally --- .travis.yml | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f24aec..df6277c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,9 @@ before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start install: + # 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.7; fi - npm install - - npm install bitcore-lib after_script: - gulp coveralls diff --git a/package.json b/package.json index 1a7ebf5..4c524f7 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "gulp": "^3.8.10" }, "peerDependencies": { - "bitcore-lib": "^0.14" + "bitcore-lib": "~0.13.7" }, "license": "MIT" }