Skip to content

Commit 16b1fed

Browse files
committed
chore: enable corepack at the top of the block
1 parent 73c7fe6 commit 16b1fed

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

scripts/fix_format.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@ REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
2525
cd "$REPO_ROOT"
2626

2727
echo "Running Prettier formatting for Node/Web assets..."
28+
corepack enable
2829
if [ -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
3536
else
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
4243
fi
4344

0 commit comments

Comments
 (0)