Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Upgrade Lucide icons and tidy up icon files #2317

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 4 additions & 6 deletions devops/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,14 @@ const collectDiskIcons = async (icons) => {
iconPaths.forEach((path) => {
const rawData = readFileSync(path);
const svg = rawData.toString();
const pattern = /\/([^/]+)\.svg$/;
const parsed = pathModule.parse(path);

const match = path.match(pattern);

if (!match) {
console.log('No match found.');
if (!parsed) {
console.log('No match found for: ', path);
return;
}

const SVGFileName = match[1];
const SVGFileName = parsed.name;
const iconFileName = SVGFileName.replace('.svg', '');
const iconName = iconFileName;

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"eslint-plugin-wc": "^2.1.1",
"glob": "^11.0.0",
"globals": "^15.8.0",
"lucide-static": "^0.424.0",
"lucide-static": "^0.441.0",
"madge": "^8.0.0",
"msw": "^1.3.2",
"playwright-msw": "^3.0.1",
Expand Down
Loading
Loading