chore(build): tick package version

tick package version
This commit is contained in:
Dan Bucholtz
2016-09-27 11:42:17 -05:00
parent 412a55deef
commit c2f9c350de
2 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"private": true,
"name": "ionic2",
"version": "2.0.0-rc.test",
"version": "2.0.0-rc.0",
"description": "A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2",
"keywords": [
"ionic",

View File

@ -19,6 +19,21 @@ task('release', (done: (err: any) => void) => {
runSequence('release.prepareReleasePackage', 'release.copyProdVersion', done);
});
task('release.publishRelease', (done: Function) => {
const npmCmd = spawn('npm', ['publish', DIST_BUILD_ROOT]);
npmCmd.stdout.on('data', function (data) {
console.log(data.toString());
});
npmCmd.stderr.on('data', function (data) {
console.log('npm err: ' + data.toString());
});
npmCmd.on('close', function() {
done();
});
});
task('release.copyProdVersion', () => {
const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`);
const packageJsonToUpdate = require(`${DIST_BUILD_ROOT}/package.json`);