Skip to content

Commit

Permalink
Clean up the references.d.ts file before bumping the version
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Aug 4, 2015
1 parent 445ebb6 commit 5f326fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function getPackageJsonVersion() {

gulp.task('version-bump', function () {
var args = minimist(process.argv);

var options = {};
if (semver.valid(args.version)) options.version = args.version;
else options.type = args.version;

return gulp.src(['./package.json'])
.pipe(bump(options).on('error', gutil.log))
.pipe(gulp.dest('./'));
Expand All @@ -45,6 +45,7 @@ gulp.task('version-push-tags', function (cb) {

gulp.task('version', function (callback) {
runSequence(
'postpublish',
'version-bump',
'version-commit',
'version-tag',
Expand Down

0 comments on commit 5f326fd

Please sign in to comment.