aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2016-01-08 13:20:19 -0500
committerTimmy Willison <timmywillisn@gmail.com>2016-01-08 13:39:46 -0500
commit47c21efce522204d0c3e779faa10de2ee63cedd7 (patch)
tree4dc6f69a279388a0de5d8ccd745626882f95dd81 /build
parentae3229c805705a01603b8f1fb094528f43b05168 (diff)
downloadjquery-47c21efce522204d0c3e779faa10de2ee63cedd7.tar.gz
jquery-47c21efce522204d0c3e779faa10de2ee63cedd7.zip
Release: allow local and github dists
Diffstat (limited to 'build')
-rw-r--r--build/release/dist.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 32053eafb..6439f6b31 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -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 = [