feat: Add setup script for configuring git hooks

This commit is contained in:
2026-03-21 23:28:51 +05:30
parent 545f06b293
commit 8210080b43
3 changed files with 12 additions and 1 deletions
+3
View File
@@ -206,6 +206,9 @@ For local development and testing without publishing:
# Install dependencies # Install dependencies
bun install bun install
# Setup git hooks
bun run setup
# Build # Build
bun run build bun run build
+2 -1
View File
@@ -21,7 +21,8 @@
"test": "bun test", "test": "bun test",
"coverage": "bun test --coverage", "coverage": "bun test --coverage",
"prepublishOnly": "bun run build", "prepublishOnly": "bun run build",
"release": "bash ./scripts/release.sh" "release": "bash ./scripts/release.sh",
"setup": "bash ./scripts/setup.sh"
}, },
"dependencies": { "dependencies": {
"chalk": "^5.3.0", "chalk": "^5.3.0",
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Setup script for development environment
echo "Setting up git hooks..."
git config core.hooksPath .githooks
echo "Setup complete!"