From ce44dd26deb6d6b0335cd6be2995bf7d2cc8d72a Mon Sep 17 00:00:00 2001 From: Armin Ayari Date: Wed, 15 May 2019 00:33:44 +0430 Subject: [PATCH] fix: update config file name in command based on README.md (#357) BREAKING CHANGE: we were accepting .version.json as a config file, rather than .versionrc.json --- command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.js b/command.js index 25b0a5abd..5d9def558 100755 --- a/command.js +++ b/command.js @@ -2,7 +2,7 @@ const findUp = require('find-up') const defaults = require('./defaults') const { readFileSync } = require('fs') -const configPath = findUp.sync(['.versionrc', '.version.json']) +const configPath = findUp.sync(['.versionrc', '.versionrc.json']) const config = configPath ? JSON.parse(readFileSync(configPath)) : {} const spec = require('conventional-changelog-config-spec') const { START_OF_LAST_RELEASE_PATTERN } = require('./lib/lifecycles/changelog')