1.1.4 • Published 2 months ago

hardhat-dependency-compiler v1.1.4

Weekly downloads
28
License
MIT
Repository
github
Last release
2 months ago

Hardhat Dependency Compiler

Compile Solidity sources directly from NPM dependencies.

Installation

npm install --save-dev hardhat-dependency-compiler
# or
yarn add --dev hardhat-dependency-compiler

Usage

Load plugin in Hardhat config:

require('hardhat-dependency-compiler');

Add configuration under the dependencyCompiler key:

optiondescriptiondefault
pathsArray of dependency paths to compile[]
pathpath to temporary directory where dependencies are imported (relative to Hardhat sources directory)'./hardhat-dependency-compiler'
keepwhether to keep temporary file directory after compilation is complete (directory will still be deleted and regenerated on each compilation)false
dependencyCompiler: {
  paths: [
    '@openzeppelin/contracts/token/ERC20/IERC20.sol',
  ],
}