hardhat-dependency-compiler
v1.2.1 hardhat buidler solidity solc npm yarn dependency dependencies smart-contracts and 4 more...
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: [
'@solidstate/contracts/interfaces/IERC20.sol',
],
}
Development
Install dependencies via Yarn:
yarn install
Setup Husky to format code on commit:
yarn prepare
npm i hardhat-dependency-compiler
Source Code
github.com/ItsNickBarry/hard...Metadata
- MIT
- >=14.14.0
- Nick Barry
- released 6/21/2024
Downloads
Maintainers
Nick Barry