diff --git a/lib/updaters/index.js b/lib/updaters/index.js index a49fc23de..3bc890d16 100644 --- a/lib/updaters/index.js +++ b/lib/updaters/index.js @@ -13,7 +13,7 @@ function getUpdaterByType (type) { module.exports.getUpdaterByType = getUpdaterByType module.exports.getUpdaterByFilename = function (filename) { - if (JSON_BUMP_FILES.includes(filename)) { + if (JSON_BUMP_FILES.includes(path.basename(filename))) { return getUpdaterByType('json') } if (PLAIN_TEXT_BUMP_FILES.includes(filename)) {