svgr icon indicating copy to clipboard operation
svgr copied to clipboard

Override does not work for `--no-index` (and maybe others)

Open gregberge opened this issue 2 years ago • 0 comments

🐛 Bug Report

Originally reported from https://github.com/gregberge/svgr/pull/607#issuecomment-1083255233

@gregberge FYI this option in the API override does not seem to work, I had to add it to the CLI command I am running to disable the generation. I tried index: true and index: false and it had no impact and an index was still being generated. And also, the reason why I tried both is because its not immediately easy to figure out, due to the wording and the name of the option, to know which actually turns it off. I'd suggest renaming the API override to noIndex as well so that you know setting it to true disables index generation. index: true implies an index WILL be created.

gregberge avatar Jun 19 '22 19:06 gregberge