File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ const argv = require('yargs/yargs')()
39
39
type : 'boolean' ,
40
40
default : false ,
41
41
} ,
42
+ foundry : {
43
+ alias : 'hasFoundry' ,
44
+ type : 'boolean' ,
45
+ default : hasFoundry ( ) ,
46
+ } ,
42
47
compiler : {
43
48
alias : 'compileVersion' ,
44
49
type : 'string' ,
@@ -53,12 +58,8 @@ const argv = require('yargs/yargs')()
53
58
require ( '@nomiclabs/hardhat-truffle5' ) ;
54
59
require ( 'hardhat-ignore-warnings' ) ;
55
60
require ( 'hardhat-exposed' ) ;
56
-
57
61
require ( 'solidity-docgen' ) ;
58
-
59
- if ( hasFoundry ( ) ) {
60
- require ( '@nomicfoundation/hardhat-foundry' ) ;
61
- }
62
+ argv . foundry && require ( '@nomicfoundation/hardhat-foundry' ) ;
62
63
63
64
for ( const f of fs . readdirSync ( path . join ( __dirname , 'hardhat' ) ) ) {
64
65
require ( path . join ( __dirname , 'hardhat' , f ) ) ;
You can’t perform that action at this time.
0 commit comments