Skip to content

Commit 4612728

Browse files
authored
chore: remove peer deps (#44)
* chore: remove peer deps We added ipfs-http-client as a peer dep to signal to the user that they should add the modules they depend on as deps of their project. Starting with npm7 all peer deps get installed automatically which defeats the purpose of our use of peer deps, so let's remove them.
1 parent 01524ac commit 4612728

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ os:
1313
- linux
1414
- osx
1515

16+
before_install:
17+
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source
18+
- npm install @mapbox/node-pre-gyp -g
19+
1620
script: npx nyc -s npm run test:node -- --bail
1721
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
1822

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
"p-queue": "^6.3.0",
3737
"peer-id": "^0.14.0"
3838
},
39-
"peerDependencies": {
40-
"ipfs-http-client": "*"
41-
},
4239
"browser": {
4340
"go-ipfs": false
4441
},

0 commit comments

Comments
 (0)