@0xweb/hardhat 0.1.12 → 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 +15 -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);
@@ -193,6 +194,8 @@ const taskArgsStore = { compileAll: false };
193
194
  console.error(`Articats Internal interface was changed. Trying to set private _artifactsPath, but it doesn't exist.`);
194
195
  }
195
196
  artifactsInstance._artifactsPath = artifactsDir;
197
+ // Clean artifacts from previous compile
198
+ artifactsInstance._validArtifacts = [];
196
199
  }
197
200
  if (compilationArgs.watch) {
198
201
  const directory = `file://${config.paths.sources}/`;
@@ -282,6 +285,18 @@ async function getCompiledAbis(config, compileSolOutput) {
282
285
  .filter(Boolean);
283
286
  return arr;
284
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 = {}));
285
300
  //# sourceMappingURL=index.js.map
286
301
  //# sourceMappingURL=index.ts.map
287
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.12",
4
+ "version": "0.1.14",
5
5
  "main": "./lib/index.js",
6
6
  "author": {
7
7
  "name": "Alex Kit",