Skip to content

Commit

Permalink
fix(index.js): use blue figures.info for last checkpoint (#64)
Browse files Browse the repository at this point in the history
so it doesn't look like something that was already done
  • Loading branch information
nexdrew authored Jun 25, 2016
1 parent 8ae428b commit e600b42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ conventionalRecommendedBump({
pkg.version = newVersion
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf-8')
} else {
console.log(chalk.red(figures.cross) + ' skip version bump on first release')
checkpoint('skip version bump on first release', [], chalk.red(figures.cross))
}

outputChangelog(argv, function () {
Expand Down Expand Up @@ -159,9 +159,9 @@ function tag (newVersion, argv) {
console.log(chalk.red(errMessage))
process.exit(1)
} else {
checkpoint('Run `%s` to publish.', [
checkpoint('Run `%s` to publish', [
'git push --follow-tags origin master; npm publish'
])
], chalk.blue(figures.info))
}
})
}
Expand All @@ -178,8 +178,8 @@ function createIfMissing (argv) {
}
}

function checkpoint (msg, args) {
console.info(chalk.green(figures.tick) + ' ' + util.format.apply(util, [msg].concat(args.map(function (arg) {
function checkpoint (msg, args, figure) {
console.info((figure || chalk.green(figures.tick)) + ' ' + util.format.apply(util, [msg].concat(args.map(function (arg) {
return chalk.bold(arg)
}))))
};

0 comments on commit e600b42

Please sign in to comment.