Socket
Socket
Sign inDemoInstall

hardhat-dependency-compiler

Package Overview
Dependencies
277
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hardhat-dependency-compiler

Compile Solidity sources directly from NPM dependencies


Version published
Weekly downloads
3.4K
increased by6.18%
Maintainers
1
Install size
6.14 kB
Created
Weekly downloads
 

Readme

Source

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',
  ],
}

Keywords

FAQs

Last updated on 28 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc