Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: exclude fs from bundle (#4076)
Browse files Browse the repository at this point in the history
We used to have 'fs' in our dep tree via ora via mock-ipfs-pinning-service but that seems to have changed.

We only want to import 'fs' during node tests but esbuild tries to resolve it, so add the dummy fs package as a dev dep to the affected packages.
  • Loading branch information
achingbrain committed Apr 5, 2022
1 parent 1a73160 commit 6c3cb73
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/ipfs-core-config/package.json
Expand Up @@ -95,7 +95,7 @@
"it-foreach": "^0.1.1",
"it-drain": "^1.0.3",
"libp2p-floodsub": "^0.29.0",
"libp2p-gossipsub": "^0.13.0",
"libp2p-gossipsub": "0.13.0",
"libp2p-kad-dht": "^0.28.5",
"libp2p-mdns": "^0.18.0",
"libp2p-mplex": "^0.10.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/ipfs-core-utils/package.json
Expand Up @@ -139,5 +139,8 @@
"@web-std/file": "^1.1.2",
"aegir": "^36.0.1",
"rimraf": "^3.0.2"
},
"browser": {
"fs": false
}
}
4 changes: 2 additions & 2 deletions packages/ipfs-core/package.json
Expand Up @@ -137,12 +137,12 @@
"@types/rimraf": "^3.0.1",
"aegir": "^36.0.1",
"delay": "^5.0.0",
"go-ipfs": "0.11.0",
"go-ipfs": "0.12.1",
"interface-blockstore-tests": "^2.0.2",
"interface-ipfs-core": "^0.154.2",
"ipfsd-ctl": "^10.0.4",
"iso-url": "^1.0.0",
"libp2p-gossipsub": "^0.13.0",
"libp2p-gossipsub": "0.13.0",
"nanoid": "^3.1.23",
"npm-run-all": "^4.1.5",
"p-defer": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-client/package.json
Expand Up @@ -76,7 +76,7 @@
"devDependencies": {
"aegir": "^36.0.1",
"delay": "^5.0.0",
"go-ipfs": "0.11.0",
"go-ipfs": "0.12.1",
"ipfsd-ctl": "^10.0.4",
"it-all": "^1.0.4",
"it-first": "^1.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/ipfs-http-server/package.json
Expand Up @@ -81,6 +81,7 @@
"devDependencies": {
"@types/hapi-pino": "^8.0.1",
"@types/hapi__hapi": "^20.0.5",
"@types/node": "^17.0.23",
"aegir": "^36.0.1",
"form-data": "^4.0.0",
"ipfs-http-client": "^56.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/ipfs/package.json
Expand Up @@ -83,18 +83,18 @@
"copyfiles": "^2.4.1",
"cross-env": "^7.0.0",
"electron-webrtc": "^0.3.0",
"go-ipfs": "0.11.0",
"go-ipfs": "0.12.1",
"interface-ipfs-core": "^0.154.2",
"ipfs-client": "^0.7.8",
"ipfs-core-types": "^0.10.2",
"ipfs-http-client": "^56.0.2",
"ipfs-interop": "^8.0.8",
"ipfs-interop": "^8.0.9",
"ipfs-utils": "^9.0.2",
"ipfsd-ctl": "^10.0.4",
"iso-url": "^1.0.0",
"libp2p-webrtc-star-signalling-server": "^0.1.1",
"merge-options": "^3.0.4",
"mock-ipfs-pinning-service": "^0.1.2",
"mock-ipfs-pinning-service": "^0.4.2",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"url": "^0.11.0",
Expand Down

0 comments on commit 6c3cb73

Please sign in to comment.