fabric-samples/ci/scripts/lint-typescript.sh
Aadithyan Raju 325b056e9d modified script calls
to enable multidestro support

Signed-off-by: Aadithyan Raju <93834376+AadithyanRaju@users.noreply.github.com>
2025-03-23 08:51:34 +00:00

22 lines
No EOL
354 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
function print() {
GREEN='\033[0;32m'
NC='\033[0m'
echo
echo -e "${GREEN}${1}${NC}"
}
dirs=("$(find . -name "*-typescript" -type d -not -path '*/.*')")
for dir in $dirs; do
print "Linting $dir"
pushd $dir
print "Installing node modules"
npm install
print "Running Lint"
npm run lint
popd
done