]> source.dussan.org Git - jquery.git/commitdiff
Release: allow local and github dists
authorTimmy Willison <timmywillisn@gmail.com>
Fri, 8 Jan 2016 18:20:19 +0000 (13:20 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Fri, 8 Jan 2016 18:39:46 +0000 (13:39 -0500)
build/release/dist.js

index 32053eafb0072c20720ab63c3490735d2849a8c9..6439f6b319fc0c255a80f7a63dd5f54bd6b19b26 100644 (file)
@@ -4,7 +4,10 @@ module.exports = function( Release, complete ) {
                fs = require( "fs" ),
                shell = require( "shelljs" ),
                pkg = require( Release.dir.repo + "/package.json" ),
-               distRemote = Release.remote.replace( "jquery.git", "jquery-dist.git" ),
+               distRemote = Release.remote
+
+                       // For local and github dists
+                       .replace( /jquery(\.git|$)/, "jquery-dist$1" ),
 
                // These files are included with the distribution
                files = [