Skip to content

Commit

Permalink
Install peerDependencies conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptEmulation committed Mar 25, 2017
1 parent c090e45 commit b2347d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"gulp": "^3.8.10"
},
"peerDependencies": {
"bitcore-lib": "^0.14"
"bitcore-lib": "~0.13.7"
},
"license": "MIT"
}

0 comments on commit b2347d0

Please sign in to comment.