Closed clemens-mw closed 2 months ago
I just thought about making import-grammars
a npm run script instead of including this into the CLI of the parser?
The idea in general is nice. But I would argue that the output doesn't have to be human readable. Most IDEs and Editors support this out of the box. I would rate this below low priority therefor I close it.
one option could be:
exec("npx prettier ./src/parser/config/nodeTypesConfig.json --write");
or use the API: https://prettier.io/docs/en/api.html