mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-17 00:27:41 +01:00
* testing * Fixes pre-commit hook * Removing checkIcons from pre commit hook because it might result in false positives and negatives on an unclean local repository * Added checkIcons Github action --------- Co-authored-by: Karsa <karsa@karsa.org>
12 lines
346 B
JavaScript
12 lines
346 B
JavaScript
import fs from 'fs';
|
|
import processSvg from './render/processSvg.mjs';
|
|
|
|
const svgFiles = process.argv.slice(2);
|
|
|
|
svgFiles.forEach(async (svgFile) => {
|
|
console.log('Optimizing staged SVG file:', svgFile)
|
|
const content = fs.readFileSync(svgFile);
|
|
const svg = await processSvg(content, svgFile);
|
|
fs.writeFileSync(svgFile, svg, 'utf-8');
|
|
});
|