Skip to content

Commit

Permalink
update: Use path.basename to lookup provided bumpFiles.filename
Browse files Browse the repository at this point in the history
Co-Authored-By: Sébastien Règne <regseb@users.noreply.github.com>
  • Loading branch information
jbottigliero and regseb committed Aug 24, 2019
1 parent bf08d1f commit c0f2b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/updaters/index.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit c0f2b5e

Please sign in to comment.