From d0aee91f4afcfc016f81d70cf42438757a5ae57a Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 13 Mar 2024 11:02:26 -0700 Subject: [PATCH] Ensure targets exist. --- .cargo-husky/hooks/pre-push | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.cargo-husky/hooks/pre-push b/.cargo-husky/hooks/pre-push index 9181ab3bed..16c87d3a77 100755 --- a/.cargo-husky/hooks/pre-push +++ b/.cargo-husky/hooks/pre-push @@ -2,6 +2,10 @@ set -e +if [[ ! -f "target/wasm32-unknown-unknown/test-wasms/test_custom_types.wasm" ]]; then + make build-test-wasms +fi + echo '+cargo fmt --check' cargo fmt --check || (cargo fmt && exit 1)