From a320b0de461c0751fae9c19a79fc5a779afd45cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=B6derberg?= Date: Tue, 14 Feb 2023 17:00:58 +1100 Subject: [PATCH 1/2] Excluding pnpm-lock.yaml from git diff --- aicommits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aicommits.ts b/aicommits.ts index 007db34..3ca6b32 100644 --- a/aicommits.ts +++ b/aicommits.ts @@ -28,7 +28,7 @@ export async function main() { } const diff = execSync( - "git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock'", + "git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock' ':(exclude)pnpm-lock.yaml'", { encoding: "utf8", } From 0ad4e8314a4a403dda0d98ea0391efd171b9525c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A=D9=88=D8=B3=D9=81=20=D8=A7=D9=84=D8=A3=D9=88=D8=B3?= =?UTF-8?q?=D9=8A?= Date: Tue, 14 Feb 2023 16:03:31 +1000 Subject: [PATCH 2/2] Update execSync command to use backticks instead of single quotes. --- aicommits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aicommits.ts b/aicommits.ts index 007db34..6c889a2 100644 --- a/aicommits.ts +++ b/aicommits.ts @@ -28,7 +28,7 @@ export async function main() { } const diff = execSync( - "git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock'", + `git diff --cached . ":(exclude)package-lock.json" ":(exclude)yarn.lock"`, { encoding: "utf8", }