From: Scott González Date: Fri, 15 Feb 2013 17:41:39 +0000 (-0500) Subject: Build: Use fs.existsSync() instead of path.existsSync(). X-Git-Tag: 1.10.1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6fe3c62e08dff0dde014e42a544afe1ced4ec91b;p=jquery-ui.git Build: Use fs.existsSync() instead of path.existsSync(). --- diff --git a/build/tasks/build.js b/build/tasks/build.js index 34f6ece29..a8f25f98f 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -159,7 +159,7 @@ grunt.registerMultiTask( "zip", "Create a zip file for release", function() { grunt.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", function() { // remove dest file before creating it, to make sure itself is not included - if ( path.existsSync( this.file.dest ) ) { + if ( fs.existsSync( this.file.dest ) ) { fs.unlinkSync( this.file.dest ); } var crypto = require( "crypto" ),