@@ -36,7 +36,7 @@ exports["default"] = exports.${jsName};
3636const writeESMExport = ( fname , jsName , icon , rhUiIcon = null ) => {
3737 outputFileSync (
3838 join ( outDir , 'esm/icons' , `${ fname } .js` ) ,
39- `import { createIcon } from '../createIcon';
39+ `import { createIcon } from '../createIcon.js ';
4040
4141export const ${ jsName } Config = {
4242 name: '${ jsName } ',
@@ -53,7 +53,7 @@ export default ${jsName};
5353
5454const writeDTSExport = ( fname , jsName , icon , rhUiIcon = null ) => {
5555 const text = `import { ComponentClass } from 'react';
56- import { SVGIconProps } from '../createIcon';
56+ import { SVGIconProps } from '../createIcon.js ';
5757export declare const ${ jsName } Config: {
5858 name: '${ jsName } ',
5959 icon: ${ JSON . stringify ( icon ) } ,
@@ -126,7 +126,7 @@ function writeIcons(icons) {
126126 } ) ;
127127
128128 const esmIndexString = index
129- . map ( ( { fname, jsName } ) => `export { ${ jsName } , ${ jsName } Config } from './${ fname } ';` )
129+ . map ( ( { fname, jsName } ) => `export { ${ jsName } , ${ jsName } Config } from './${ fname } .js ';` )
130130 . sort ( )
131131 . join ( '\n' ) ;
132132 outputFileSync ( join ( outDir , 'esm' , 'icons/index.js' ) , esmIndexString ) ;
0 commit comments