Skip to content

Commit c2529e8

Browse files
authored
make sure generated icon code adheres to styles (#419)
1 parent dc0244d commit c2529e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

other/build-icons.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as path from 'node:path'
2+
import { $ } from 'execa'
23
import fsExtra from 'fs-extra'
34
import { glob } from 'glob'
45
import { parse } from 'node-html-parser'
@@ -147,5 +148,6 @@ async function writeIfChanged(filepath: string, newContent: string) {
147148
.catch(() => '')
148149
if (currentContent === newContent) return false
149150
await fsExtra.writeFile(filepath, newContent, 'utf8')
151+
await $`prettier --write ${filepath}`
150152
return true
151153
}

0 commit comments

Comments
 (0)