Skip to content

Commit

Permalink
fix: should print message before we bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Nov 27, 2016
1 parent b788c5f commit 2894bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ function updateConfigs (args, newVersion) {
if (stat.isFile()) {
var config = require(configPath)
var filename = path.basename(configPath)
checkpoint(args, 'bumping version in ' + filename + ' from %s to %s', [config.version, newVersion])
config.version = newVersion
fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n', 'utf-8')
checkpoint(args, 'bumping version in ' + filename + ' from %s to %s', [config.version, newVersion])
// flag any config files that we modify the version # for
// as having been updated.
configsToUpdate[configPath] = true
Expand Down

0 comments on commit 2894bbc

Please sign in to comment.