Skip to content

Commit 4fd50cd

Browse files
authored
Fix Prettier Error for Unknown File Types in writeIfChanged (#421)
1 parent c2529e8 commit 4fd50cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

other/build-icons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ async function writeIfChanged(filepath: string, newContent: string) {
148148
.catch(() => '')
149149
if (currentContent === newContent) return false
150150
await fsExtra.writeFile(filepath, newContent, 'utf8')
151-
await $`prettier --write ${filepath}`
151+
await $`prettier --write ${filepath} --ignore-unknown`
152152
return true
153153
}

0 commit comments

Comments
 (0)