File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 55
66// Debugging variables
77var debug = false ,
8- skipRemote = true ;
8+ skipRemote = false ;
99
1010var fs = require ( "fs" ) ,
1111 child = require ( "child_process" ) ,
@@ -52,6 +52,13 @@ steps(
5252) ;
5353
5454function initialize ( next ) {
55+
56+ if ( process . argv [ 2 ] === "-d" ) {
57+ process . argv . shift ( ) ;
58+ debug = true ;
59+ console . warn ( "=== DEBUG MODE ===" ) ;
60+ }
61+
5562 // First arg should be the version number being released
5663 var newver , oldver ,
5764 rversion = / ^ ( \d ) \. ( \d + ) \. ( \d ) ( (?: a | b | r c ) \d | p r e ) ? $ / ,
@@ -74,9 +81,6 @@ function initialize( next ) {
7481 if ( ! ( fs . existsSync || path . existsSync ) ( "package.json" ) ) {
7582 die ( "No package.json in this directory" ) ;
7683 }
77- if ( debug ) {
78- console . warn ( "=== DEBUG MODE ===" ) ;
79- }
8084 pkg = JSON . parse ( fs . readFileSync ( "package.json" ) ) ;
8185
8286 console . log ( "Current version is " + pkg . version + "; generating release " + releaseVersion ) ;
Original file line number Diff line number Diff line change 22 "name" : " jquery" ,
33 "title" : " jQuery" ,
44 "description" : " JavaScript library for DOM operations" ,
5- "version" : " 1.8.2pre " ,
5+ "version" : " 1.8.2 " ,
66 "homepage" : " http://jquery.com" ,
77 "author" : {
88 "name" : " jQuery Foundation and other contributors" ,
You can’t perform that action at this time.
0 commit comments