From 12f45baa529e3391a5b1c4e489a9ac465213c86d Mon Sep 17 00:00:00 2001 From: kozyrevdev <73348153+kozyrevdev@users.noreply.github.com> Date: Thu, 02 Dec 2021 22:25:34 +0000 Subject: [PATCH] Merge pull request #240 from UniqueNetwork/feature/types-repo --- --- a/tests/.eslintrc.json +++ b/tests/.eslintrc.json @@ -64,6 +64,7 @@ "destructuring": "all" } ], + "@typescript-eslint/ban-ts-comment": "off", "object-curly-spacing": "warn", "arrow-spacing": "warn", "array-bracket-spacing": "warn", --- /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 -- gitstuff