Files
setup-ruby/pre-commit
T

9 lines
151 B
Bash
Executable File

#!/usr/bin/sh
set -e
if git diff --cached --name-only | grep -E '.(js|json)$'; then
yarn install
yarn run package
exec git add dist/index.js
fi