Skip to content

Commit b2347d0

Browse files
committed
Install peerDependencies conditionally
1 parent c090e45 commit b2347d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ before_install:
66
- export DISPLAY=:99.0
77
- sh -e /etc/init.d/xvfb start
88
install:
9+
# Install peerDependencies on > npm3
10+
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies
11+
- if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install [email protected]; fi
912
- npm install
10-
- npm install bitcore-lib
1113
after_script:
1214
- gulp coveralls

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"gulp": "^3.8.10"
3131
},
3232
"peerDependencies": {
33-
"bitcore-lib": "^0.14"
33+
"bitcore-lib": "~0.13.7"
3434
},
3535
"license": "MIT"
3636
}

0 commit comments

Comments
 (0)