Skip to content

Commit

Permalink
Fix Prettier Error for Unknown File Types in writeIfChanged (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoSattler authored Sep 1, 2023
1 parent c2529e8 commit 4fd50cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/build-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ async function writeIfChanged(filepath: string, newContent: string) {
.catch(() => '')
if (currentContent === newContent) return false
await fsExtra.writeFile(filepath, newContent, 'utf8')
await $`prettier --write ${filepath}`
await $`prettier --write ${filepath} --ignore-unknown`
return true
}

0 comments on commit 4fd50cd

Please sign in to comment.