diff --git a/.husky/pre-commit b/.husky/pre-commit index dfdf620..513a9dc 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ yarn lint-staged -CI=true yarn docs:check && yarn lint && yarn format && yarn ts:check && yarn run test:unit && yarn copyright:check +CI=true yarn copyright:check && yarn docs:check && yarn lint && yarn format && yarn ts:check && yarn run test:unit diff --git a/scripts/copyright.sh b/scripts/copyright.sh index afba967..8fd4aad 100755 --- a/scripts/copyright.sh +++ b/scripts/copyright.sh @@ -18,7 +18,7 @@ set -e if [ "$#" -eq 0 ]; then TARGETS=('src/**/*.{js,ts,proto}' "dist/**/*.js" "tests/**/*.{js,ts}" "scripts/**/*.{sh,ts,js}") else - TARGETS=("$@") + TARGETS=("${@/#$PWD\//}") fi # Path to the package.json file