diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 000000000..2a056288d --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run build:version diff --git a/hooks/commit.js b/hooks/commit.js deleted file mode 100644 index 602749d01..000000000 --- a/hooks/commit.js +++ /dev/null @@ -1,3 +0,0 @@ -require('child_process').exec('git rev-parse HEAD', function(err, stdout) { - console.log('Last commit hash on this branch is:', stdout); -}); \ No newline at end of file