This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Commit 506f5be
Alan Shaw
fix: path to cid-tool commands (#1866)
In the edge case where IPFS is a dependency of a project and the user attempts to use the IPFS CLI, the cid-tool will not be installed at `proj/node_modules/ipfs/node_modules/cid-tool` but will instead be flattened by npm and installed at `proj/node_modules/cid-tool`. i.e. next to `ipfs` in the dependency tree instead of a child of.
This PR fixes this situation by using `require.resolve` to get the path to the `cid-tool` instead of assuming where it is installed.
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>1 parent 7533d76 commit 506f5be
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments