#!/usr/bin/env bash set -e pipefail # TODO fix need for --skip-lint # build program, anchor build --skip-lint # patch types, which we want in rust, but anchor client doesn't support ./idl-fixup.sh # update types in ts client package cp -v ./target/types/mango_v4.ts ./ts/client/src/mango_v4.ts (cd ./ts/client && tsc)