chore: pre-commit script for deteting and generate license header (#384)

This commit is contained in:
tecvan
2025-07-31 12:41:24 +08:00
committed by GitHub
parent 5c5b40606a
commit f7d73cd391
2 changed files with 168 additions and 0 deletions

View File

@@ -19,7 +19,10 @@ source frontend/scripts/block-unresolved-conflict.sh
block_unresolved_conflict '--cached'
if [ "$PRE_LINT" != "1" ]; then
# Add license headers to staged files
bash scripts/hooks/add-license-header.sh || exit $?
node common/scripts/install-run-rush.js fix-ts-refers --use-cached-files --shallow --submit-changes
# node infra/commanders/fix-peer-deps/bin/main.js fix --use-cached-files -s
node common/scripts/install-run-rush.js -q lint-staged || exit $?