diff --git a/githooks/pre-commit-adorno b/githooks/pre-commit-adorno new file mode 100644 index 0000000..6fa97af --- /dev/null +++ b/githooks/pre-commit-adorno @@ -0,0 +1,21 @@ +#!/bin/bash + +foundryup + +if [ $? -ne 0 ]; then + echo "foundryup failed." + exit 1 +fi + +pnpm run adorno + +if [ $? -ne 0 ]; then + echo "pnpm run adorno failed." + exit 1 +fi + +git add . + +echo "Successfully ran pnpm run adorno and added modified files." + +exit 0 \ No newline at end of file