diff --git a/.husky/pre-commit b/.husky/pre-commit index cf2314c..2e96bc4 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -6,6 +6,6 @@ GREEN_COLOR="\033[0;32m" RESET_COLOR="\u001b[39m" SPACER=" " -printf "${YELLOW_COLOR}Checking for errors...${RESET_COLOR}" +printf "${YELLOW_COLOR}⚠ Checking for errors...${RESET_COLOR}" npx --no-install lint-staged --quiet || exit 1 -printf "\r${GREEN_COLOR}No errors found. Commiting your changes!${RESET_COLOR}${SPACER}\n" +printf "\r${GREEN_COLOR}✓ No errors found. Committing your changes!${RESET_COLOR}${SPACER}\n" diff --git a/scripts/release.sh b/scripts/release.sh index 26de09f..68093c7 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -1,12 +1,14 @@ #!/bin/sh YELLOW_COLOR="\u001b[33m" GREEN_COLOR="\033[0;32m" +RED_COLOR='\033[0;31m' +BLUE_COLOR='\033[0;34m' RESET_COLOR="\u001b[39m" SPACER=" " -printf "${YELLOW_COLOR}Checking for errors...${RESET_COLOR}" -source scripts/check.sh &>/dev/null || exit 1 -printf "\r${GREEN_COLOR}No errors found.${RESET_COLOR}${SPACER}\n" -printf "${YELLOW_COLOR}Building distribution bundles...${RESET_COLOR}" -source scripts/build.sh &>/dev/null || exit 1 -printf "\r${GREEN_COLOR}Built distribution bundles.${SPACER}${RESET_COLOR}\n${YELLOW_COLOR}Run \`np\` to publish.${RESET_COLOR}" +printf "${YELLOW_COLOR}⚠ Checking for errors...${RESET_COLOR}" +source scripts/check.sh &>/dev/null || (printf "\r${RED_COLOR}✗ Error during checks. Run \`sh scripts/check.sh\`.${RESET_COLOR}\n" && exit 1) +printf "\r${GREEN_COLOR}✓ No errors found.${RESET_COLOR}${SPACER}\n" +printf "${YELLOW_COLOR}⚠ Building distribution bundles...${RESET_COLOR}" +source scripts/build.sh &>/dev/null || (printf "\r${RED_COLOR}✗ Error during build. Run \`sh scripts/build.sh\`.${RESET_COLOR}\n" && exit 1) +printf "\r${GREEN_COLOR}✓ Built distribution bundles.${SPACER}${RESET_COLOR}\n${BLUE_COLOR}ⓘ Run \`np\` to publish.${RESET_COLOR}\n" diff --git a/scripts/yarn.sh b/scripts/yarn.sh index 2f0ff5a..801894b 100644 --- a/scripts/yarn.sh +++ b/scripts/yarn.sh @@ -1,8 +1,8 @@ #!/bin/sh -YELLOW_COLOR="\u001b[33m" +RED_COLOR='\033[0;31m' RESET_COLOR="\u001b[39m" if [[ $npm_execpath != *"yarn"* ]]; then - printf "${YELLOW_COLOR}This repository requires Yarn 1.x for scripts to work properly.${RESET_COLOR}\n\n" + printf "${RED_COLOR}✗ Lucia requires Yarn 1.x for scripts to work properly.${RESET_COLOR}\n\n" exit 1 fi diff --git a/src/core/utils/__test__/adjustDeps.spec.ts b/src/core/utils/__test__/adjustDeps.spec.ts index b3f5aa2..695ddb8 100644 --- a/src/core/utils/__test__/adjustDeps.spec.ts +++ b/src/core/utils/__test__/adjustDeps.spec.ts @@ -1,3 +1,5 @@ +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-nocheck import adjustDeps from '../adjustDeps'; describe('.adjustDeps', () => {