@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.
Files changed (2) hide show
  1. package/lib/index.js +14 -2
  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
- await runSuper();
197
+ try {
198
+ await runSuper();
199
+ }
200
+ catch (error) {
201
+ console.log(`Compilation failed`, error);
202
+ console.log(`Watching...`);
203
+ }
198
204
  });
199
- await runSuper();
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xweb/hardhat",
3
3
  "description": "0xweb plugin for Hardhat",
4
- "version": "0.1.23",
4
+ "version": "0.1.24",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",