mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
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:
10
gulpfile.js
10
gulpfile.js
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user