git.delta.rocks / unique-network / refs/commits / f9470659c53f

difftreelog

feat types regeneration script

Yaroslav Bolyukin2021-11-16parent: #94e2090.patch.diff
in: master

2 files changed

modifiedtests/.eslintrc.jsondiffbeforeafterboth
63 {63 {
64 "destructuring": "all"64 "destructuring": "all"
65 }65 }
66 ]66 ],
67 "@typescript-eslint/ban-ts-comment": "off"
67 }68 }
68}69}
70
addedtests/update_types.shdiffbeforeafterboth
--- /dev/null
+++ b/tests/update_types.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env sh
+
+if [[ ! -f unique-types-js ]]; then
+	git clone git@github.com:UniqueNetwork/unique-types-js.git
+fi
+
+yarn polkadot-types
+
+rsync -ar --delete 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
+
+pushd unique-types-js
+git add src/interfaces/
+git commit -m "chore: regenerate types"
+popd