Adding node dependencies includes a lot of unnecessary contracts
See original GitHub issueIn our use case, one of our contract packages depends on another contract package. However, copying this dependency into the coverage environment results in a ridiculous number of extra contracts being instrumented, due to the inclusion of the dependency’s node modules.
The full list of contracts being instrumented in that repo: https://gist.github.com/sohkai/459dc9ab1b3a410e9af6ab9ae07a196c.
It would be great if we had a way to target certain folders or files in the dependencies for instrumentation, and a way to skip the rest of node_modules
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Understanding the npm dependency model - Alexis King
If those contracts involve other packages in any way, they should be peer dependencies. If they don't, they should be ordinary dependencies.
Read more >Understanding dependency management with Node Modules
Updating and removing unused dependencies · Only upgrade one package or a group of related packages which rely on each other (e.g. React...
Read more >Cleanup the node_modules for a lighter Lambda Function
Any nodejs project carries a bulky folder - the node_modules - that carries all the modules and dependencies that the application would need. ......
Read more >Error when installing necessary packages on Node js
open the Visual Studio Installer and you can see if the installer has completed installing the build tools. It may need to be...
Read more >Yarn lock: how it works and what you risk without maintaining ...
If you've ever built an npm library you might have stumbled ... adding dependencies yarn add PACKAGE-NAME # removing dependencies yarn ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be a non-issue with newly published 0.7.0. We’re no longer copying any packages & the tool runs at the same layer as the project root.
However if you run into any weird issues using Lerna with the new version, please just lmk.
A monorepo called Sabiler has been able to run the new version without serious problems so hopefully everything’s ok.
Can confirm wit sc.3 that these
staticcall
tests are working for us now as well 👍.Will check out the gas check in CI! That looks super cool 😃. Quick question on it; how well does it support monorepo tests? Should it try and pipe the results of each separate package together, kind of like what happens with lcov?