difftreelog
feat types regeneration script
in: master
2 files changed
tests/.eslintrc.jsondiffbeforeafterboth63 {63 {64 "destructuring": "all"64 "destructuring": "all"65 }65 }66 ]66 ],67 "@typescript-eslint/ban-ts-comment": "off"67 }68 }68}69}70tests/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