Skip to content

Commit ed6a6aa

Browse files
authored
build(ui): reuse icon script const (#643)
1 parent b7246a2 commit ed6a6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/scripts/update-icons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const withIcVersionComment = (s: string) => `// Generated from @iconify-json/ic@
2626
export const icIcons: Record<string, { body: string }> = Object.keys(icons.icons).filter(i => i.startsWith('baseline')).reduce((a, b) => ({ ...a, [b]: icons.icons[b].body }), {})
2727

2828
function update() {
29-
writeFileSync(resolve(__dirname, '../src/constants/ic-icons.ts'), withIcVersionComment(`export const icIcons: Record<string, string> = ${JSON.stringify(icIcons, null, 2)}`))
29+
writeFileSync(targetPath, withIcVersionComment(`export const icIcons: Record<string, string> = ${JSON.stringify(icIcons, null, 2)}`))
3030
console.log('ic icons updated')
3131
}
3232

0 commit comments

Comments
 (0)