#!/bin/bash # setup_brick.sh echo "๐Ÿงน Cleaning old Mason cache (Hard Refresh)..." rm -rf .mason echo "๐Ÿ“ฆ Fetching Hook dependencies (Yaml/Mason)..." if [ -d "bricks/api_endpoint/hooks" ]; then cd bricks/api_endpoint/hooks dart pub get cd ../../../ else echo "โŒ Error: Hooks directory not found!" exit 1 fi echo "๐Ÿงฑ Getting latest Brick definition..." mason get echo "โœ… Ready! Run 'mason make api_endpoint'"