2023-02-03 10:45:11 +00:00
|
|
|
#!/bin/sh
|
2023-07-11 10:41:41 +00:00
|
|
|
|
|
|
|
# Get the path the the Husky script.
|
|
|
|
FILE="$(dirname "$0")/_/husky.sh"
|
|
|
|
|
|
|
|
# Exit if Husky is not installed.
|
|
|
|
if [ ! -f "$FILE" ]; then
|
|
|
|
exit 0;
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Run the Husky script, and pre-commit hooks.
|
|
|
|
. $FILE
|
2023-02-03 10:45:11 +00:00
|
|
|
cd js
|
|
|
|
npx lint-staged
|