@0xweb/hardhat 0.1.13 → 0.1.14

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 +13 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -167,6 +167,7 @@ const taskArgsStore = { compileAll: false };
167
167
  if (compilationArgs.tsgen === false) {
168
168
  config['0xweb'].tsgen = false;
169
169
  }
170
+ ConfigHelper.resetPaths(config.paths);
170
171
  let { sources: sourcesDir, artifacts: artifactsDir, root: rootDir } = compilationArgs;
171
172
  if (rootDir != null) {
172
173
  rootDir = _path_1.$path.resolve(rootDir);
@@ -284,6 +285,18 @@ async function getCompiledAbis(config, compileSolOutput) {
284
285
  .filter(Boolean);
285
286
  return arr;
286
287
  }
288
+ var ConfigHelper;
289
+ (function (ConfigHelper) {
290
+ let $backup;
291
+ function resetPaths(paths) {
292
+ if ($backup == null) {
293
+ $backup = { ...paths };
294
+ return;
295
+ }
296
+ Object.assign(paths, $backup);
297
+ }
298
+ ConfigHelper.resetPaths = resetPaths;
299
+ })(ConfigHelper || (ConfigHelper = {}));
287
300
  //# sourceMappingURL=index.js.map
288
301
  //# sourceMappingURL=index.ts.map
289
302
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xweb/hardhat",
3
3
  "description": "Hardhat plugin for 0xweb",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",