(file: string)
| 94 | }; |
| 95 | |
| 96 | const isFileExcludedFromDiff = (file: string) => |
| 97 | file.includes('.lock') || |
| 98 | file.includes('-lock.') || |
| 99 | file.includes('.svg') || |
| 100 | file.includes('.png') || |
| 101 | file.includes('.jpg') || |
| 102 | file.includes('.jpeg') || |
| 103 | file.includes('.webp') || |
| 104 | file.includes('.gif'); |
| 105 | |
| 106 | export const getDiff = async ({ files }: { files: string[] }) => { |
| 107 | const gitDir = await getGitDir(); |