@0xweb/hardhat 0.1.8 → 0.1.9
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 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -149,10 +149,10 @@ const taskArgsStore = { compileAll: false };
|
|
|
149
149
|
if (rootDir != null) {
|
|
150
150
|
rootDir = _path_1.$path.resolve(rootDir);
|
|
151
151
|
if (sourcesDir == null) {
|
|
152
|
-
sourcesDir = _path_1.$path.join(rootDir, 'contracts')
|
|
152
|
+
sourcesDir = `file://${_path_1.$path.join(rootDir, 'contracts')}`;
|
|
153
153
|
}
|
|
154
154
|
if (artifactsDir == null) {
|
|
155
|
-
artifactsDir = _path_1.$path.join(rootDir, 'artifacts')
|
|
155
|
+
artifactsDir = `file://${_path_1.$path.join(rootDir, 'artifacts')}`;
|
|
156
156
|
}
|
|
157
157
|
config.paths.root = rootDir;
|
|
158
158
|
config.paths.cache = _path_1.$path.join(rootDir, 'cache');
|
|
@@ -163,8 +163,7 @@ const taskArgsStore = { compileAll: false };
|
|
|
163
163
|
}
|
|
164
164
|
if (artifactsDir) {
|
|
165
165
|
artifactsDir = _path_1.$path.resolve(artifactsDir);
|
|
166
|
-
config.paths.artifacts =
|
|
167
|
-
config.paths.cache = _path_1.$path.join(artifactsDir, './cache/');
|
|
166
|
+
config.paths.artifacts = artifactsDir;
|
|
168
167
|
// Re-set Artifacts Path manually, as Hardhat initializes the Artifacts Instance before this task runs.
|
|
169
168
|
// Other paths (sources, cache) will be resolved later by hardhat from config
|
|
170
169
|
const artifactsInstance = artifacts;
|