You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hello, maybe it's a bit late, but in case someone else has the same issue where the file isn't read if it's .cjs, and you don't want/can't change the type: "module" in your package.json, here is my solution based on your code.
Rename the file to include .json at the end, and convert the module.exports content to a regular JSON structure. I named my file .cz-config.js.json, and with this, it works because their readConfigFile function, if it doesn't find a .js file, will try with .json.
Hello, maybe it's a bit late, but in case someone else has the same issue where the file isn't read if it's .cjs, and you don't want/can't change the type: "module" in your package.json, here is my solution based on your code.
Rename the file to include .json at the end, and convert the module.exports content to a regular JSON structure. I named my file .cz-config.js.json, and with this, it works because their readConfigFile function, if it doesn't find a .js file, will try with .json.
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.
The text was updated successfully, but these errors were encountered: