@0xweb/hardhat 0.1.11 → 0.1.13
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 +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -143,7 +143,7 @@ const taskArgsStore = { compileAll: false };
|
|
|
143
143
|
.addOptionalParam('sources', 'Override the sources directory')
|
|
144
144
|
.addOptionalParam('artifacts', 'Override the artifacts output directory')
|
|
145
145
|
.addOptionalParam('root', 'Overrides root directory. If sources is also overriden must be the sub-folder of the sources dir')
|
|
146
|
-
.addOptionalParam('watch', 'Re-runs compilation task on changes',
|
|
146
|
+
.addOptionalParam('watch', 'Re-runs compilation task on changes', false, {
|
|
147
147
|
name: 'boolean',
|
|
148
148
|
validate(argName, argumentValue) { },
|
|
149
149
|
parse(val) {
|
|
@@ -193,6 +193,8 @@ const taskArgsStore = { compileAll: false };
|
|
|
193
193
|
console.error(`Articats Internal interface was changed. Trying to set private _artifactsPath, but it doesn't exist.`);
|
|
194
194
|
}
|
|
195
195
|
artifactsInstance._artifactsPath = artifactsDir;
|
|
196
|
+
// Clean artifacts from previous compile
|
|
197
|
+
artifactsInstance._validArtifacts = [];
|
|
196
198
|
}
|
|
197
199
|
if (compilationArgs.watch) {
|
|
198
200
|
const directory = `file://${config.paths.sources}/`;
|