feat: exclude all *.lock files (#108)

Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
This commit is contained in:
Spenser Black
2023-03-01 20:01:27 -05:00
committed by GitHub
parent f8fb0e246a
commit ac6972c506

View File

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