1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/.husky/pre-commit
Christopher Kolstad f4e3388606
task: Yarn v4 (#7457)
Moves to Yarn v4

---------

Co-authored-by: Alvin Bryan <107407814+alvinometric@users.noreply.github.com>
2024-06-27 12:52:43 +02:00

12 lines
321 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn dlx lint-staged
node .husky/update-openapi-spec-list.js
# Check if the src/lib/openapi/spec/index.ts file was modified and if so, add it to the commit
if git ls-files -m | grep -q "src/lib/openapi/spec/index.ts"; then
git add src/lib/openapi/spec/index.ts
fi