From c1595485e8f578ab6382ec0a31c76f987786c68d Mon Sep 17 00:00:00 2001 From: Webber Date: Sun, 13 Mar 2022 14:34:11 +0000 Subject: [PATCH] fix: misalignments in dev lifecycle --- .husky/pre-commit | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index b00790d6..0912390c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,6 @@ #!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; } -git lfs post-merge "$@" +. "$(dirname "$0")/_/husky.sh" -yarn lint-staged --verbose && yarn build && git add dist +yarn lint-staged --verbose +yarn build +git add dist diff --git a/package.json b/package.json index 256f007a..5dbee6ca 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "*.{js,jsx,ts,tsx}": [ "prettier --write", "eslint", - "jest --findRelatedTests" + "jest --findRelatedTests --passWithNoTests" ], "*.{json,md,yaml,yml}": [ "prettier --write"