From 364753dc388a8b3e49077fe0c567e41d1fdec983 Mon Sep 17 00:00:00 2001 From: Nemi Shah Date: Thu, 2 Jun 2022 15:07:45 +0530 Subject: [PATCH] Update pre commit hook --- hooks/pre-commit.sh | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pre-commit.sh b/hooks/pre-commit.sh index d92d716e..f76fc811 100755 --- a/hooks/pre-commit.sh +++ b/hooks/pre-commit.sh @@ -110,7 +110,7 @@ then git stash drop >/dev/null 2>/dev/null fi -if [ $compiles -eq 0 ] && [ $formatted -eq 0 ] && [ $circDep -eq 0 ] && [ $dotOnly -eq 1 ] && [ $linted -eq 0 ] +if [ $compiles -eq 0 ] && [ $formatted -eq 0 ] && [ $circDep -eq 0 ] && [ $dotOnly -eq 1 ] && [ $linted -eq 0 ] && [ $pruned -eq 0 ] then echo "$(tput setaf 2)... done. Proceeding with commit.$(tput sgr 0)" echo "" diff --git a/package.json b/package.json index d59f5587..d81715b0 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "test-unit": "TEST_MODE=testing npx mocha 'test/unit/*.test.js'", "test": "npm run test-unit", "build-docs": "rm -rf ./docs && npx typedoc --out ./docs --tsconfig ./lib/tsconfig.json ./lib/ts/index.ts ./lib/ts/**/index.ts ./lib/ts/**/*/index.ts", - "prune": "cd lib && ts-prune | grep -vE 'used in module| - default$| - package_version$|getSuperTokensRoutesForReactRouterDom$' && exit 1 || exit 0" + "prune": "cd lib && ts-prune | grep -vE 'used in module| - default$| - package_version$|init$' && exit 1 || exit 0" }, "repository": { "type": "git",