@0xweb/hardhat 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -20
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -144,26 +144,8 @@ const taskArgsStore = { compileAll: false };
|
|
|
144
144
|
.addOptionalParam('artifacts', 'Override the artifacts output directory')
|
|
145
145
|
.addOptionalParam('root', 'Overrides root directory. If sources is also overridden must be the sub-folder of the sources dir')
|
|
146
146
|
.addOptionalParam('package', 'Compile the contracts within a specific mono-repo package. Artifacts and 0xc classes will be placed in the package directory')
|
|
147
|
-
.addOptionalParam('
|
|
148
|
-
|
|
149
|
-
validate(argName, argumentValue) { },
|
|
150
|
-
parse(val) {
|
|
151
|
-
if (val === '' || val === '1' || val === true || val === 'true') {
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
})
|
|
157
|
-
.addOptionalParam('tsgen', 'Skip the TypeScript class generation', true, {
|
|
158
|
-
name: 'boolean',
|
|
159
|
-
validate(key, value) { },
|
|
160
|
-
parse(key, value) {
|
|
161
|
-
if (value === '0' || value === 0 || value === false || value === 'false') {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
})
|
|
147
|
+
.addOptionalParam('tsgen', 'Skip the TypeScript class generation', true, config_1.types.boolean)
|
|
148
|
+
.addFlag('watch', 'Watch sources directory and reruns compilation task on changes')
|
|
167
149
|
.setAction(async (compilationArgs, { run, config, artifacts }, runSuper) => {
|
|
168
150
|
ConfigHelper.resetPaths(config.paths);
|
|
169
151
|
if (compilationArgs.tsgen === false) {
|