diff --git a/lib/lifecycles/bump.js b/lib/lifecycles/bump.js index ad5b2386b..d0c6fb0bc 100644 --- a/lib/lifecycles/bump.js +++ b/lib/lifecycles/bump.js @@ -222,10 +222,20 @@ function updateConfigs(args, newVersion) { } const configPath = path.resolve(process.cwd(), updater.filename); try { - if (dotgit.ignore(updater.filename)) return; + if (dotgit.ignore(updater.filename)) { + console.debug( + `Not updating file '${updater.filename}', as it is ignored in Git`, + ); + return; + } const stat = fs.lstatSync(configPath); - if (!stat.isFile()) return; + if (!stat.isFile()) { + console.debug( + `Not updating '${updater.filename}', as it is not a file`, + ); + return; + } const contents = fs.readFileSync(configPath, 'utf8'); const newContents = updater.updater.writeVersion(contents, newVersion); const realNewVersion = updater.updater.readVersion(newContents);