This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information