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.
This commit is contained in:
perry
2016-01-28 14:36:47 -06:00
parent 9a78d6833a
commit ab4c7c3135

View File

@ -486,11 +486,11 @@ gulp.task('publish', ['package'], function(done){
npmCmd.on('close', function() { npmCmd.on('close', function() {
// update package.json // update package.json
if (!err) { // if (!err) {
var packageJSON = require('./package.json'); // var packageJSON = require('./package.json');
packageJSON.version = semver.inc(packageJSON.version, 'prerelease', 'alpha'); // packageJSON.version = semver.inc(packageJSON.version, 'prerelease', 'alpha');
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2)); // fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
} // }
done(); done();
}); });