From ab4c7c313590faba2b2143952ab5c9cccdff24d7 Mon Sep 17 00:00:00 2001 From: perry Date: Thu, 28 Jan 2016 14:36:47 -0600 Subject: [PATCH] chore(package): don't increment version in `gulp package` other tasks require it to be updated before packaging so incrementing it again causes a second version bump. soon this will be all automated and the code can be moved to the appropriate step then. --- gulpfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0ae7fe4b5c..753b70a66e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -486,11 +486,11 @@ gulp.task('publish', ['package'], function(done){ npmCmd.on('close', function() { // update package.json - if (!err) { - var packageJSON = require('./package.json'); - packageJSON.version = semver.inc(packageJSON.version, 'prerelease', 'alpha'); - fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2)); - } + // if (!err) { + // var packageJSON = require('./package.json'); + // packageJSON.version = semver.inc(packageJSON.version, 'prerelease', 'alpha'); + // fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2)); + // } done(); });