hardhat-dependency-compiler
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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:

option description default
paths Array of dependency paths to compile []
path path to temporary directory where dependencies are imported (relative to Hardhat sources directory) './hardhat-dependency-compiler'
keep whether 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',
  ],
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    1,029
    • latest

Version History

Package Sidebar

Install

npm i hardhat-dependency-compiler

Weekly Downloads

3,152

Version

1.1.4

License

MIT

Unpacked Size

6.29 kB

Total Files

9

Last publish

Collaborators

  • itsnickbarry