File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @zeit-ui/react-icons" ,
33 "description" : " React icon components based on Vercel Design" ,
4- "version" : " 1.2.0 " ,
4+ "version" : " 1.2.1 " ,
55 "main" : " index.js" ,
66 "module" : " index.js" ,
77 "types" : " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export default (async () => {
2525 const document = new JSDOM ( html ) . window . document
2626 let exports = ''
2727 let definition = makeBasicDefinition ( )
28+ const singleDefinition = `${ makeBasicDefinition ( ) } declare const _default: Icon;\nexport default _default\n`
2829
2930 const icons = document . querySelectorAll ( '.geist-list .icon' )
3031 const promises = Array . from ( icons ) . map ( ( icon : Element ) => {
@@ -46,8 +47,6 @@ export default ${componentName};`
4647 exports += `export { default as ${ componentName } } from './${ fileName } ';\n`
4748 definition += `export const ${ componentName } : Icon;\n`
4849
49- const singleDefinition = `${ makeBasicDefinition ( ) } declare const _default: Icon;\nexport default _default\n`
50-
5150 fs . outputFile (
5251 path . join ( outputDir , `${ fileName } .d.ts` ) ,
5352 singleDefinition ,
You can’t perform that action at this time.
0 commit comments