File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11lib /
22
3+ scripts /** /*
4+
35src /** /* .js
46src /** /* .js.map
57src /** /* .d.ts
68
79spec /** /* .js
810spec /** /* .js.map
9- spec /** /* .d.ts
11+ spec /** /* .d.ts
Original file line number Diff line number Diff line change @@ -3,22 +3,20 @@ const replace = require("gulp-replace");
33const jsonModify = require ( "gulp-json-modify" ) ;
44const argv = require ( "yargs" ) . argv ;
55
6- function ReplaceVersionInJson ( ) {
7- const versionKey = "version" ;
8- return src ( [ "../../package.json" , "../../package-lock.json" ] )
9- . pipe (
10- jsonModify ( {
11- key : versionKey ,
12- value : argv . newVersion ,
13- } ) ,
14- )
15- . pipe ( dest ( "../../" ) ) ;
6+ function ReplaceVersionInJson ( ) {
7+ const versionKey = "version" ;
8+ return src ( [ "../../package.json" , "../../package-lock.json" ] )
9+ . pipe ( jsonModify ( {
10+ key : versionKey ,
11+ value : argv . newVersion
12+ } ) )
13+ . pipe ( dest ( "../../" ) ) ;
1614}
1715
18- function ReplaceVersionInConstants ( ) {
19- return src ( [ "../../src/Constants.ts" ] )
20- . pipe ( replace ( / P A C K A G E _ V E R S I O N ? = ? " .* ?" / g, `PACKAGE_VERSION = "${ argv . newVersion } "` ) )
21- . pipe ( dest ( "../../src" ) ) ;
16+ function ReplaceVersionInConstants ( ) {
17+ return src ( [ "../../src/Constants.ts" ] )
18+ . pipe ( replace ( / P A C K A G E _ V E R S I O N ? = ? " .* ?" / g, `PACKAGE_VERSION = "${ argv . newVersion } "` ) )
19+ . pipe ( dest ( "../../src" ) ) ;
2220}
2321
2422exports . ReplaceVersion = series ( ReplaceVersionInJson , ReplaceVersionInConstants ) ;
You can’t perform that action at this time.
0 commit comments