Files
lucide/scripts/optimizeStagedSvgs.mjs
Eric Fennis 318c024589 Migrate to PNPM (#777)
* add pnpm

* make it work

* fix comamnds in package.jsons

* move some scripts to modules

* workflow fixes

* test workflow

* test #2

* minor fix

* update lockflite

* create workflows

* update workflow

* Add copy license command

* Fix build

* update workflows

* update contributions.md

* migrate site directory to pnpm

* Fix peer dependencies when install

* fix types in lucide-angular

* fix testing
2022-08-10 09:10:53 +02:00

11 lines
281 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');
});