leoforfree / cz-customizable

A standalone commit message helper or customizable commitizen adapter for https://github.com/commitizen/cz-cli
MIT License
609 stars 200 forks source link

Can you support ES Module mode, meaning that the .cz-config.js configuration file should also work if renamed to .cz-config.cjs? #241

Open cwjbjy opened 3 months ago

cwjbjy commented 3 months ago

In the read-config-file.js file, the readConfigFile function has a parameter CZ_CONFIG_NAME that defaults to .cz-config.js and does not support .cz-config.cjs.