Dumb shortcut to convert .svg files to .tsx typed react components as suggested in the svgr documentation.
Run the package using npx github:lucasriondel/svgr-cli-typescript [...args]
.
This will do the same as running
npx @svgr/cli --template typescript-template.js --ext tsx [...args]
You can use every parameter specified in the @svgr/cli
documentation.
npx github:lucasriondel/svgr-cli-typescript trust-me-its-working.svg -d ./
npx github:lucasriondel/svgr-cli-typescript assets/*.svg -d components/