mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(release): update to increment major version
This commit is contained in:
@ -89,7 +89,7 @@ task('release.copyProdVersion', () => {
|
|||||||
// Increment the version and update the source package file
|
// Increment the version and update the source package file
|
||||||
const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`);
|
const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`);
|
||||||
|
|
||||||
sourcePackageJSON.version = semver.inc(sourcePackageJSON.version, 'prerelease', true);
|
sourcePackageJSON.version = semver.inc(sourcePackageJSON.version, 'major', true);
|
||||||
|
|
||||||
const sourcePrettyPrintedJson = JSON.stringify(sourcePackageJSON, null, 2);
|
const sourcePrettyPrintedJson = JSON.stringify(sourcePackageJSON, null, 2);
|
||||||
writeFileSync(`${PROJECT_ROOT}/package.json`, sourcePrettyPrintedJson);
|
writeFileSync(`${PROJECT_ROOT}/package.json`, sourcePrettyPrintedJson);
|
||||||
|
Reference in New Issue
Block a user