Skip to content

Commit

Permalink
Merge branch 'refactor-switch-component' of https://github.com/ruru-m…
Browse files Browse the repository at this point in the history
…07/ruru-ui into refactor-switch-component
  • Loading branch information
ruru-m07 committed Oct 20, 2024
2 parents 45e5496 + 3a94dd6 commit 62c6dea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm run --filter=./apps/www build:registry && pnpm prettier
echo "Running pre-commit hook..."
if ! pnpm run --filter=./apps/www build:registry; then
echo "Error: Failed to build registry. Commit aborted."
exit 1
fi
echo "Registry built successfully. Running Prettier..."
if ! pnpm prettier; then
echo "Error: Prettier formatting failed. Commit aborted."
exit 1
fi
echo "Pre-commit hook completed successfully."

0 comments on commit 62c6dea

Please sign in to comment.