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 () => {