File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1+ const exec = require ( 'child_process' ) . exec ;
2+
13const AWS = require ( 'aws-sdk' ) ,
24 awspublish = require ( 'gulp-awspublish' ) ,
35 browserify = require ( 'browserify' ) ,
46 buffer = require ( 'vinyl-buffer' ) ,
5- bump = require ( 'gulp-bump' ) ,
67 fs = require ( 'fs' ) ,
78 git = require ( 'gulp-git' ) ,
89 gitStatus = require ( 'git-get-status' ) ,
@@ -50,10 +51,16 @@ gulp.task('bump-choice', (cb) => {
5051 return gulp . src ( [ './package.json' ] ) . pipe ( processor ) ;
5152} ) ;
5253
53- gulp . task ( 'bump-version' , ( ) => {
54- return gulp . src ( [ './package.json' ] )
55- . pipe ( bump ( { type : global . bump } ) )
56- . pipe ( gulp . dest ( './' ) ) ;
54+ gulp . task ( 'bump-version' , ( cb ) => {
55+ exec ( `npm version ${ global . bump || 'patch' } --no-git-tag-version` , {
56+ cwd : './'
57+ } , ( error ) => {
58+ if ( error ) {
59+ cb ( error ) ;
60+ }
61+
62+ cb ( ) ;
63+ } ) ;
5764} ) ;
5865
5966gulp . task ( 'embed-version' , ( ) => {
Original file line number Diff line number Diff line change 11{
22 "name" : " @barchart/marketdata-api-js" ,
3- "version" : " 5.1.2 " ,
3+ "version" : " 5.1.1 " ,
44 "description" : " SDK for streaming market data from Barchart.com" ,
55 "author" : {
66 "name" : " Eero Pikat" ,
5252 "glob" : " ^6.0.1" ,
5353 "gulp" : " ^4.0.2" ,
5454 "gulp-awspublish" : " ^4.0.0" ,
55- "gulp-bump" : " ~1.0.0" ,
5655 "gulp-git" : " ^2.5.1" ,
5756 "gulp-jasmine" : " ^2.2.1" ,
5857 "gulp-jshint" : " ^2.1.0" ,
You can’t perform that action at this time.
0 commit comments