Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 2ecb092

Browse files
authored
chore: update ipfs (#43)
* chore: update ipfs The next ipfs release will be a dual ESM/CJS version which is presenting some interesting challenges for all the different tools used here. We also use the `ipfs` module everywhere when we could be using `ipfs-core` instead - it's lighter and much quicker to install. Really we should only use `ipfs` when we need the CLI and the HTTP RPC API, though I'm a little wary of the potential confusion for new users having two options introduces.
1 parent 95434b7 commit 2ecb092

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "node tests/test.js"
1414
},
1515
"dependencies": {
16-
"ipfs": "^0.58.1"
16+
"ipfs": "^0.59.0"
1717
},
1818
"devDependencies": {
1919
"nanoid": "^3.1.23",

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function startCliNode () {
1616
}
1717
}
1818

19-
const ipfs = require.resolve('ipfs/src/cli.js')
19+
const ipfs = IPFS.path()
2020

2121
await node.execa(ipfs, ['init'], opts)
2222
await node.execa(ipfs, ['config', 'Addresses.Swarm', '--json', JSON.stringify([`/ip4/0.0.0.0/tcp/0`, `/ip4/127.0.0.1/tcp/0/ws`])], opts)

0 commit comments

Comments
 (0)