From ac6972c506faaa393f94b471384c338f17936ecc Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Wed, 1 Mar 2023 20:01:27 -0500 Subject: [PATCH] feat: exclude all *.lock files (#108) Co-authored-by: hiroki osame --- src/utils/git.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/git.ts b/src/utils/git.ts index 155f4bd..bc455c1 100644 --- a/src/utils/git.ts +++ b/src/utils/git.ts @@ -10,8 +10,10 @@ export const assertGitRepo = async () => { const excludeFromDiff = [ 'package-lock.json', - 'yarn.lock', 'pnpm-lock.yaml', + + // yarn.lock, Cargo.lock, Gemfile.lock, Pipfile.lock, etc. + '*.lock', ].map(file => `:(exclude)${file}`); export const getStagedDiff = async () => {