Closed raineorshine closed 2 years ago
This PR adds default support for the .cjs file extension.
A .cjs file is a CommonJS JavaScript file: nodejs.org/api/packages.html#:~:text=Files%20ending%20with%20.cjs, babeljs.io/docs/en/config-files#:~:text=babel.config.cjs%20and%20.babelrc.cjs. It’s common for CommonJS CLI tools to accept .cjs files as config files, so that projects with "type": "module" in their package.json have a way to specify the configuration for the CommonJS tool.
A .cjs file is a CommonJS JavaScript file: nodejs.org/api/packages.html#:~:text=Files%20ending%20with%20.cjs, babeljs.io/docs/en/config-files#:~:text=babel.config.cjs%20and%20.babelrc.cjs.
.cjs
It’s common for CommonJS CLI tools to accept .cjs files as config files, so that projects with "type": "module" in their package.json have a way to specify the configuration for the CommonJS tool.
"type": "module"
package.json
https://github.com/raineorshine/npm-check-updates/issues/1051
Look good! Thanks!
Released https://github.com/azu/rc-config-loader/releases/tag/v4.1.0
This PR adds default support for the .cjs file extension.
https://github.com/raineorshine/npm-check-updates/issues/1051