Skip to content

Commit

Permalink
fix: ensure generated file passes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhhayashi committed Oct 5, 2023
1 parent 3f35ca3 commit cf8491d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generator/generate-svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,17 @@ const generateIndexFile = () => {
const iconsExport = icons
.map(
(icon) =>
`export { default as ${Case.pascal(icon)} } from "./icons/${Case.pascal(
`export { default as ${Case.pascal(icon)} } from './icons/${Case.pascal(
icon
)}";`
)}';`
)
.join('\n');

const fileContent = `/* GENERATED FILE */
export { Icon, IconProps, IconContext, IconWeight } from './lib'
export { Icon, IconProps, IconContext, IconWeight } from './lib';
${iconsExport}
`;
`;

fs.writeFileSync(path.join(__dirname, '../src', 'index.tsx'), fileContent);
};
Expand Down

0 comments on commit cf8491d

Please sign in to comment.