Commit dd5ab8c0 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

hardhat-deploy-config: easier config (#3564)

Allow `paths` to be unset in the hardhat config.
The default path will be used if a top level `paths`
object is not included in the hardhat config.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 608961df
---
'@eth-optimism/hardhat-deploy-config': patch
---
Allow `paths` to be unset in hardhat config
...@@ -106,7 +106,7 @@ extendConfig( ...@@ -106,7 +106,7 @@ extendConfig(
(config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => { (config: HardhatConfig, userConfig: Readonly<HardhatUserConfig>) => {
config.paths.deployConfig = normalizePath( config.paths.deployConfig = normalizePath(
config, config,
userConfig.paths.deployConfig, userConfig.paths?.deployConfig,
'deploy-config' 'deploy-config'
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment