We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 366a498 commit eceaedfCopy full SHA for eceaedf
lib/configuration.js
@@ -4,6 +4,7 @@ const { readFileSync } = require('fs')
4
5
const CONFIGURATION_FILES = [
6
'.versionrc',
7
+ '.versionrc.cjs',
8
'.versionrc.json',
9
'.versionrc.js'
10
]
@@ -14,7 +15,8 @@ module.exports.getConfiguration = function () {
14
15
if (!configPath) {
16
return config
17
}
- if (path.extname(configPath) === '.js') {
18
+ const ext = path.extname(configPath)
19
+ if (ext === '.js' || ext === '.cjs') {
20
const jsConfiguration = require(configPath)
21
if (typeof jsConfiguration === 'function') {
22
config = jsConfiguration()
0 commit comments