File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,19 +25,20 @@ REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
2525cd " $REPO_ROOT "
2626
2727echo " Running Prettier formatting for Node/Web assets..."
28+ corepack enable
2829if [ -f " .yarn/install-state.gz" ]; then
2930 # Local Node environment already installed; invoke standard script targets
3031 if [ " $CHECK_ONLY " = true ]; then
31- corepack yarn format:check:all
32+ yarn format:check:all
3233 else
33- corepack yarn format:all
34+ yarn format:all
3435 fi
3536else
3637 # Non-Node contributor or CI; run standalone Prettier via dlx without full monorepo install
3738 if [ " $CHECK_ONLY " = true ]; then
38- corepack yarn dlx prettier@^3.5.0 --config .prettierrc --check .
39+ yarn dlx prettier@^3.5.0 --config .prettierrc --check .
3940 else
40- corepack yarn dlx prettier@^3.5.0 --config .prettierrc --write .
41+ yarn dlx prettier@^3.5.0 --config .prettierrc --write .
4142 fi
4243fi
4344
You can’t perform that action at this time.
0 commit comments