We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d4dd93 commit f5b0b13Copy full SHA for f5b0b13
scripts/prepack.sh
@@ -1,10 +1,12 @@
1
#!/usr/bin/env bash
2
3
set -euo pipefail
4
+shopt -s globstar
5
6
# cross platform `mkdir -p`
7
node -e 'fs.mkdirSync("build/contracts", { recursive: true })'
8
-cp artifacts/**/*.json build/contracts
9
+cp artifacts/contracts/**/*.json build/contracts
10
+rm build/contracts/*.dbg.json
11
12
node scripts/remove-ignored-artifacts.js
scripts/remove-ignored-artifacts.js
@@ -28,7 +28,7 @@ const filenames = fs.readdirSync(buildinfo);
28
if (filenames.length !== 1) {
29
throw new Error(`There should only be one file in ${buildinfo}`);
30
}
31
-const solcOutput = readJSON(path.join(buildinfo, filenames[0]));
+const solcOutput = readJSON(path.join(buildinfo, filenames[0])).output;
32
33
const artifactsDir = 'build/contracts';
34
0 commit comments