Open nsheff opened 10 months ago
It looks like this option is simply not supported, but I can see a promising PR that adds it in. I will follow up. https://github.com/ajv-validator/ajv-cli/pull/200
This will either be an enhancement or it's just that the docs are wrong.
What version of Ajv are you using? Does the issue happen if you use the latest version?
ajv-cli@5.0.0
The docs say:
But when I do this:
It gives this error:
Indeed, in
ajv help compile
, there is no option listed for--code.esm
. So, the documentation here is incorrect: https://ajv.js.org/standalone.htmlMaybe related to #2209 -- is ESM module generation not working, and so the CLI option has been removed?