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

@ -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`);