mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 15:17:41 +01:00
* Update `svgo` and `svgson` version and fix some tests * Update eslint-related packages and fix all linter errors * Update all rollup-related packages version * Update all rollup-related packages (part 2) * Update the rest of package which need to be updated * Fix unwanted comment * Fix unwanted comment (again)
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
import fs from 'fs';
|
|
import processSvg from './render/processSvg.mjs';
|
|
|
|
const svgFiles = process.argv.slice(4);
|
|
|
|
svgFiles.forEach(async (svgFile) => {
|
|
const content = fs.readFileSync(svgFile);
|
|
const svg = await processSvg(content);
|
|
fs.writeFileSync(svgFile, svg, 'utf-8');
|
|
});
|