Skip to content

Commit 1065e88

Browse files
committed
fix: improve filtering of changed files to ignore pnpm-lock.yaml
1 parent 4dba600 commit 1065e88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export async function run(): Promise<void> {
4646
changedFiles = changedFiles.filter(f => {
4747
const ext = extname(f)
4848
return fileExts.includes(ext)
49+
}).filter(f => {
50+
// ignore pnpm-lock.yaml
51+
return !f.endsWith('pnpm-lock.yaml');
52+
4953
})
5054

5155
if (fs.existsSync(prettierIgnore)) {

0 commit comments

Comments
 (0)