Skip to content

Conversation

ItsNickBarry
Copy link
Contributor

#1087 adds basic support for Hardhat, which is suitable for developing Hardhat plugins. However, it lacks support for most situations faced by consumers of Hardhat.

  • detect imports from dependencesToCompile in hardhat.config.*
  • detect *.sol imports from *.sol files
  • apply remappings to *.sol imports
  • detect test files if a Hardhat test runner plugin is installed
  • check formatting

Copy link

pkg-pr-new bot commented Jun 3, 2025

Open in StackBlitz

npm i https://pkg.pr.new/knip@1116

commit: d6bfd39

@webpro webpro force-pushed the main branch 4 times, most recently from 5a2d249 to 6bd250a Compare June 17, 2025 17:36
return [toDependency('hardhat')];
const inputs = [toDependency("hardhat")];

// TODO: only add test files if a Hardhat test reporter is installed
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to check for the presence of other packages here, or does that require a separate plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant