From 3ade340b27db42e861a5f5c9bec1d0b64a6bf909 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 4 Apr 2022 10:12:21 +0100 Subject: [PATCH] fix: add fs and go-ipfs to browser ignores (#451) We add execa to the browser ignores but we need to add fs and go-ipfs as well. We can revert this once we drop CJS support since we're changing the package.json generated by ipjs and with just ESM we won't need ipjs any more. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dba49b37..3242f8d7 100644 --- a/package.json +++ b/package.json @@ -147,7 +147,7 @@ "scripts": { "clean": "rimraf /tmp/js-ipfs /tmp/go-ipfs ./go-libp2p-relay-daemon dist types", "lint": "aegir lint", - "build": "aegir build --esm-tests && cp -R types scripts bin test src .aegir.cjs dist && cp bin/package.json dist/src && cp bin/package.json dist/test && npx json -I -f dist/package.json -e 'this.browser.execa=false'", + "build": "aegir build --esm-tests && cp -R types scripts bin test src .aegir.cjs dist && cp bin/package.json dist/src && cp bin/package.json dist/test && npx json -I -f dist/package.json -e 'this.browser.execa=false; this.browser.fs=false; this.browser[\"go-ipfs\"]=false'", "release": "semantic-release", "postinstall": "cross-env node ./scripts/setup-libp2p-relay-daemon.js", "pretest": "aegir build --esm-tests",