We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b617fe3 commit 9097301Copy full SHA for 9097301
packages/ui-scripts/lib/icons/get-glyph-data.js
@@ -39,8 +39,12 @@ export default function getGlyphData(
39
const glyphs = []
40
// variants are in different sub directories
41
const subdirs = fs.readdirSync(svgSourceDir)
42
+ // we only care about subdirs named "Solid" or "Line"
43
+ const relevantSubdirs = subdirs.filter(
44
+ (dir) => dir === 'Solid' || dir === 'Line'
45
+ )
46
- subdirs.forEach((subdir) => {
47
+ relevantSubdirs.forEach((subdir) => {
48
const fileNames = fs.readdirSync(svgSourceDir + subdir)
49
fileNames.forEach((fileName) => {
50
const { name, ext } = path.parse(fileName)
0 commit comments