]> source.dussan.org Git - jquery-ui.git/commitdiff
Release: Remove support for node <0.8.
authorScott González <scott.gonzalez@gmail.com>
Wed, 9 Jan 2013 01:20:03 +0000 (20:20 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 9 Jan 2013 01:20:03 +0000 (20:20 -0500)
build/release/release.js

index 60abf61ec3ad384e025c2fe967b3b950c3a80a49..8454d95bbee4d307c75b12783e2cdba1fd084db0 100644 (file)
@@ -9,9 +9,6 @@
 
 var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, preRelease,
        fs = require( "fs" ),
-       path = require( "path" ),
-       // support: node <0.8
-       existsSync = fs.existsSync || path.existsSync,
        rnewline = /\r?\n/,
        repo = "git@github.com:jquery/jquery-ui.git",
        branch = "master";
@@ -376,7 +373,7 @@ function bootstrap( fn ) {
        baseDir = process.cwd() + "/__release";
        repoDir = baseDir + "/repo";
 
-       if ( existsSync( baseDir ) ) {
+       if ( fs.existsSync( baseDir ) ) {
                console.log( "The directory '" + baseDir + "' already exists." );
                console.log( "Aborting." );
                process.exit( 1 );