From 46127282cad721a2923a461b9a813530fc3fc7cb Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 9 Apr 2021 13:26:58 +0100 Subject: [PATCH] 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. --- .travis.yml | 4 ++++ package.json | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d6c96f..c304c2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,10 @@ os: - linux - osx +before_install: + # modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source + - npm install @mapbox/node-pre-gyp -g + script: npx nyc -s npm run test:node -- --bail after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov diff --git a/package.json b/package.json index 0a67075..1ed1a90 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,6 @@ "p-queue": "^6.3.0", "peer-id": "^0.14.0" }, - "peerDependencies": { - "ipfs-http-client": "*" - }, "browser": { "go-ipfs": false },