From 2eb21287d7251dca03adf730c20d3cf5bde890d8 Mon Sep 17 00:00:00 2001 From: Joe Bottigliero Date: Wed, 7 Aug 2019 11:59:09 -0500 Subject: [PATCH] update: Use path.basename to lookup provided bumpFiles.filename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Sébastien Règne --- lib/updaters/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {