Skip to content

Commit 7a3391b

Browse files
BryanBryan
authored andcommitted
Use "npm version" command, instead of gulp-bump package
1 parent 6764675 commit 7a3391b

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

gulpfile.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
const exec = require('child_process').exec;
2+
13
const 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

5966
gulp.task('embed-version', () => {

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -52,7 +52,6 @@
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",

0 commit comments

Comments
 (0)