Merge remote-tracking branch 'dtolnay/ts'

This commit is contained in:
David Tolnay 2020-05-02 13:17:03 -07:00
commit 5f8a325e9a
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -6,7 +6,7 @@
# This script can yield false positives in cases where you only make stylistic changes to the TypeScript code that don't result in changes to the compiled JavaScript code.
# It is your responsibility as a developer to then commit the changes with `git commit --no-verify` and simply skip this commit hook.
TS_FILES=$(git diff --staged --name-only | grep -c '.ts')
TS_FILES=$(git diff --staged --name-only | grep -c '\.ts$')
DIST_MODIFIED=$(git diff --staged --name-only | grep -c dist/index.js)
if [ $TS_FILES -gt 0 ] && [ $DIST_MODIFIED -eq 0 ] ; then