We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 190d709 commit bd902eaCopy full SHA for bd902ea
scripts/hooks/post-checkout
@@ -1,2 +1,2 @@
1
#!/bin/sh
2
-npm run npx hereby -- generate-diagnostics
+./node_modules/.bin/hereby generate-diagnostics || true
scripts/hooks/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/sh
+if git diff --name-only --cached --relative | xargs --no-run-if-empty ./node_modules/.bin/dprint fmt; then
3
+ git diff --name-only --cached --relative | xargs --no-run-if-empty git add
4
+fi
scripts/link-hooks.mjs
@@ -11,6 +11,7 @@ const __dirname = path.dirname(__filename);
11
12
const hooks = [
13
"post-checkout",
14
+ "pre-commit",
15
];
16
17
hooks.forEach(hook => {
0 commit comments