ajv-validator / ajv-cli

Command-line interface for Ajv JSON Validator
https://ajv.js.org
MIT License
262 stars 66 forks source link

ESM module output not supported for `compile` #207

Open petrklus opened 2 years ago

petrklus commented 2 years ago

I would like to be able to pass the code-esm option to ajv to generate ESM style module.

I have submitted a base PR https://github.com/ajv-validator/ajv-cli/pull/206/commits/a58c09d10343283d0f4f160dc8f52290b4311f6b with the same change I've applied locally in my node_modules folder to hack it to get it to work.

Related to a more generic request https://github.com/ajv-validator/ajv-cli/issues/197

ahemed-haneen commented 2 years ago

@petrklus is your PR https://github.com/ajv-validator/ajv-cli/commit/a58c09d10343283d0f4f160dc8f52290b4311f6b to be merged? is anything holding back these changes?