File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,11 @@ gulp.task(
140
140
141
141
/** Set the project version, controls package.json and version.js */
142
142
gulp . task ( 'set' , function ( ) {
143
- // Get the --version arg from command line
144
- const version = minimist ( process . argv . slice ( 2 ) , { string : 'version' } ) . version
143
+ // example: gulp set --x 1.7.7
144
+
145
+ // Get the --x arg from command line
146
+ const command = minimist ( process . argv . slice ( 2 ) , { string : 'x' } )
147
+ const version = command . x
145
148
146
149
if ( ! semver . valid ( version ) ) {
147
150
throw new Error ( `Invalid version "${ version } "` )
Original file line number Diff line number Diff line change 18
18
"run-stress-tests" : " gulp run-stress-tests" ,
19
19
"run-ts-declaration-tests" : " gulp run-ts-declaration-tests" ,
20
20
"docs" : " esdoc -c esdoc.json" ,
21
- "versionRelease" : " gulp set --version $VERSION && npm version $VERSION --no-git-tag-version" ,
21
+ "versionRelease" : " gulp set --x $VERSION && npm version $VERSION --no-git-tag-version" ,
22
22
"browser" : " gulp browser && gulp test-browser"
23
23
},
24
24
"husky" : {
Original file line number Diff line number Diff line change 19
19
20
20
// DO NOT CHANGE THE VERSION BELOW HERE
21
21
// This is set by the build system at release time, using
22
- // gulp set --version <releaseversion>
22
+ //
23
+ // gulp set --x <releaseversion>
23
24
//
24
25
// This is set up this way to keep the version in the code in
25
26
// sync with the npm package version, and to allow the build
You can’t perform that action at this time.
0 commit comments