@0xweb/hardhat 0.1.23 → 0.1.24
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 +14 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -194,9 +194,21 @@ const taskArgsStore = { compileAll: false };
|
|
|
194
194
|
if (compilationArgs.watch) {
|
|
195
195
|
const directory = `file://${config.paths.sources}/`;
|
|
196
196
|
atma_io_1.Directory.watch(directory, async (...args) => {
|
|
197
|
-
|
|
197
|
+
try {
|
|
198
|
+
await runSuper();
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
console.log(`Compilation failed`, error);
|
|
202
|
+
console.log(`Watching...`);
|
|
203
|
+
}
|
|
198
204
|
});
|
|
199
|
-
|
|
205
|
+
try {
|
|
206
|
+
await runSuper();
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
console.log(`Compilation failed`, error);
|
|
210
|
+
console.log(`Watching...`);
|
|
211
|
+
}
|
|
200
212
|
// prevent from exit
|
|
201
213
|
await new Promise(resolve => { });
|
|
202
214
|
return;
|