diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100755 index 25cc54f6..00000000 --- a/.githooks/pre-commit +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Check if package.json contains a workflows section -if grep -q '"workflows":' package.json; then - echo "Error: package.json contains a workflows section. Commit aborted." - echo "Please remove the workflows section before committing." - exit 1 -fi - -# If we get here, the check passed -exit 0 \ No newline at end of file diff --git a/.githooks/pre-push b/.githooks/pre-push new file mode 100755 index 00000000..008bba46 --- /dev/null +++ b/.githooks/pre-push @@ -0,0 +1,11 @@ +#!/bin/bash + +# Check if package.json contains a workspaces section +if grep -q '"workspaces":' package.json; then + echo "Error: package.json contains a workspaces section. Push aborted." + echo "Please remove the workspaces section before pushing." + exit 1 +fi + +# If we get here, the check passed +exit 0 \ No newline at end of file