@superfluid-finance/metadata 1.1.11-dev.3e57a67.0 → 1.1.11-dev.a4baccf.0
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/build.sh
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/bin/bash
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
2
|
# This script builds the files in the main and module directories.
|
|
3
3
|
|
|
4
4
|
rm main/networks/list.cjs
|
|
@@ -16,4 +16,4 @@ cat > module/networks/list.js <<EOF
|
|
|
16
16
|
export default
|
|
17
17
|
EOF
|
|
18
18
|
|
|
19
|
-
cat networks.json | tee -a main/networks/list.cjs module/networks/list.js > /dev/null
|
|
19
|
+
cat networks.json | tee -a main/networks/list.cjs module/networks/list.js > /dev/null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/metadata",
|
|
3
|
-
"version": "1.1.11-dev.
|
|
3
|
+
"version": "1.1.11-dev.a4baccf.0",
|
|
4
4
|
"description": "Superfluid Metadata",
|
|
5
5
|
"main": "main/index.cjs",
|
|
6
6
|
"module": "module/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bump-version-to": "./bump-version-to.sh $@",
|
|
20
20
|
"pre-commit": "if [ ! -z \"$(git status -s .)\" ];then run-s pre-commit:*;else true;fi",
|
|
21
21
|
"pre-commit:lint": "yarn lint",
|
|
22
|
-
"pre-commit:check": "./compare-committed-against-build.sh",
|
|
22
|
+
"pre-commit:check": "./tasks/compare-committed-against-build.sh",
|
|
23
23
|
"lint": "run-s lint:*",
|
|
24
24
|
"lint:js-eslint": "eslint . --max-warnings=0 --report-unused-disable-directives && echo '✔ Your .js files look good.'",
|
|
25
25
|
"fix": "run-s fix:*",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
#!/bin/bash
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
2
|
# This script checks that the built files are consistent with the committed files.
|
|
3
3
|
|
|
4
4
|
set -xe
|
|
5
5
|
|
|
6
|
+
cd "$(dirname "$0")"/..
|
|
7
|
+
|
|
6
8
|
# Hash a file using sha256sum and cut the hash from the output
|
|
7
9
|
function hashFiles() {
|
|
8
|
-
sha256sum $1 | cut -d ' ' -f 1
|
|
10
|
+
sha256sum "$1" | cut -d ' ' -f 1
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
# Hash the commited files
|
|
@@ -24,4 +26,4 @@ if [ "$main_list_committed_hash" != "$main_list_built_hash" ] || [ "$module_list
|
|
|
24
26
|
echo "The built files were not consistent with the committed files."
|
|
25
27
|
echo "I just ran ./build.sh for you. You need to include those changes in the commit."
|
|
26
28
|
exit 1
|
|
27
|
-
fi
|
|
29
|
+
fi
|