git.delta.rocks / unique-network / refs/commits / 12f45baa529e

difftreelog

Merge pull request #240 from UniqueNetwork/feature/types-repo

kozyrevdev2021-12-02parents: #767e0d8 #26aa849.patch.diff
in: master

2 files changed

modifiedtests/.eslintrc.jsondiffbeforeafterboth
64 "destructuring": "all"64 "destructuring": "all"
65 }65 }
66 ],66 ],
67 "@typescript-eslint/ban-ts-comment": "off",
67 "object-curly-spacing": "warn",68 "object-curly-spacing": "warn",
68 "arrow-spacing": "warn",69 "arrow-spacing": "warn",
69 "array-bracket-spacing": "warn",70 "array-bracket-spacing": "warn",
addedtests/update_types.shdiffbeforeafterboth
--- /dev/null
+++ b/tests/update_types.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+
+yarn polkadot-types
+
+cd ../..
+if [ ! -f unique-types-js ]; then
+	git clone git@github.com:UniqueNetwork/unique-types-js.git
+fi
+
+rsync -ar --delete unique-chain/tests/src/interfaces/ unique-types-js/src/interfaces
+for file in unique-types-js/src/interfaces/augment-*; do
+	sed -i '1s;^;//@ts-nocheck\n;' $file
+done
+
+cd unique-types-js
+git add src/interfaces/
+git commit -m "chore: regenerate types"
+cd ../unique-chain/tests
\ No newline at end of file