Skip to content

Commit

Permalink
Fix(icons): Ignore sprite.svg while generating React icon components
Browse files Browse the repository at this point in the history
  • Loading branch information
dlouhak committed Dec 4, 2023
1 parent 9f25da0 commit 06ac076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/icons/scripts/prepareSvgReact.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const toPascalCase = (string) =>

const prepareSvgForReactComponent = (srcDir, distDir) => {
fs.readdir(srcDir, (err, files) => {
const svgs = files.filter((el) => path.extname(el) === '.svg');
const svgs = files.filter((el) => path.extname(el) === '.svg' && el !== 'sprite.svg');
if (svgs.length > 0) {
svgs.forEach((svg) => {
const svgPath = path.join(srcDir, svg);
Expand Down

0 comments on commit 06ac076

Please sign in to comment.