diff options
Diffstat (limited to 'build/release.js')
-rw-r--r-- | build/release.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/build/release.js b/build/release.js index 396ddefc4..8c277d4df 100644 --- a/build/release.js +++ b/build/release.js @@ -5,7 +5,7 @@ // Debugging variables var debug = false, - skipRemote = true; + skipRemote = false; var fs = require("fs"), child = require("child_process"), @@ -52,6 +52,13 @@ steps( ); function initialize( next ) { + + if ( process.argv[2] === "-d" ) { + process.argv.shift(); + debug = true; + console.warn("=== DEBUG MODE ===" ); + } + // First arg should be the version number being released var newver, oldver, rversion = /^(\d)\.(\d+)\.(\d)((?:a|b|rc)\d|pre)?$/, @@ -74,9 +81,6 @@ function initialize( next ) { if ( !(fs.existsSync || path.existsSync)( "package.json" ) ) { die( "No package.json in this directory" ); } - if ( debug ) { - console.warn("=== DEBUG MODE ===" ); - } pkg = JSON.parse( fs.readFileSync( "package.json" ) ); console.log( "Current version is " + pkg.version + "; generating release " + releaseVersion ); |