mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add pre-commit dprint hook, fix post-checkout hook (#55799)
This commit is contained in:
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
if git diff --name-only --cached --relative | xargs --no-run-if-empty ./node_modules/.bin/dprint fmt; then
|
||||
git diff --name-only --cached --relative | xargs --no-run-if-empty git add
|
||||
fi
|
||||
Reference in New Issue
Block a user