From d9547da3d8f5b5c760c84dc45a06e3cb76c1c2af Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 26 May 2021 13:51:07 +0200 Subject: [PATCH] cli: Update run_examples.sh to use yarn node --- packages/cli/run_examples.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/cli/run_examples.sh b/packages/cli/run_examples.sh index 8ec0e10e..4216086d 100755 --- a/packages/cli/run_examples.sh +++ b/packages/cli/run_examples.sh @@ -2,18 +2,16 @@ set -o errexit -o nounset -o pipefail command -v shellcheck >/dev/null && shellcheck "$0" -PATH="$(realpath ./bin):$PATH" - -cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)" if [ -n "${LAUNCHPAD_ENABLED:-}" ]; then - cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)" + yarn node ./bin/cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)" fi -cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)" -cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)" -cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)" -cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)" -cosmwasm-cli --init examples/mask.ts --code "process.exit(0)" -cosmwasm-cli --init examples/multisig_address.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/mask.ts --code "process.exit(0)" +yarn node ./bin/cosmwasm-cli --init examples/multisig_address.ts --code "process.exit(0)" if [ -n "${SIMAPP_ENABLED:-}" ]; then - cosmwasm-cli --init examples/stargate.ts --code "process.exit(0)" + yarn node ./bin/cosmwasm-cli --init examples/stargate.ts --code "process.exit(0)" fi