There was an error while loading. Please reload this page.
1 parent ddcdd0f commit b222288Copy full SHA for b222288
2 files changed
.husky/pre-commit
@@ -1,7 +1,11 @@
1
#!/bin/sh
2
3
-set -e # this makes the script fail on first error
+set -e
4
5
-chmod +x bin/fix.sh && ./bin/fix.sh
6
-chmod +x bin/lint.sh && ./bin/lint.sh
7
-php artisan test || true
+repo_root="$(git rev-parse --show-toplevel)"
+cd "$repo_root"
+
8
+chmod +x bin/fix.sh bin/lint.sh bin/test.sh
9
+./bin/fix.sh
10
+./bin/lint.sh
11
+composer test
package.json
@@ -2,7 +2,7 @@
"private": true,
"type": "module",
"scripts": {
- "prepare": "husky"
+ "prepare": "husky install"
},
"devDependencies": {
"husky": "^9.1.7"
0 commit comments