crytic-compile icon indicating copy to clipboard operation
crytic-compile copied to clipboard

Support for Hardhat projects with Yarn PnP

Open arijoon opened this issue 3 years ago • 0 comments

Describe the desired feature

Yarn version 2 and above are quickly becoming industry standard due to the optimal way of package management. Especially with PnP mode of dependencies, there are no more node_modules folders. This is specifically a problem for hardhat projects as slither is attempting to read dependency source code from node_modules which no longer exists.

Hardhat already supports PnP, hence it would be ideal if slither can also load dependencies from the set locations (by reading pnp.cjs files), or load the js environment and then read the package location. Given if someone is using hardhat, its safe to assume node will be available and can be loaded

arijoon avatar Nov 28 '22 11:11 arijoon