1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash declare -a arr=("core" "client" "server") for i in "${arr[@]}" do cd $i yarn run build cd .. done