feat: exclude all *.lock files (#108)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
This commit is contained in:
@@ -10,8 +10,10 @@ export const assertGitRepo = async () => {
|
|||||||
|
|
||||||
const excludeFromDiff = [
|
const excludeFromDiff = [
|
||||||
'package-lock.json',
|
'package-lock.json',
|
||||||
'yarn.lock',
|
|
||||||
'pnpm-lock.yaml',
|
'pnpm-lock.yaml',
|
||||||
|
|
||||||
|
// yarn.lock, Cargo.lock, Gemfile.lock, Pipfile.lock, etc.
|
||||||
|
'*.lock',
|
||||||
].map(file => `:(exclude)${file}`);
|
].map(file => `:(exclude)${file}`);
|
||||||
|
|
||||||
export const getStagedDiff = async () => {
|
export const getStagedDiff = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user