aboutsummaryrefslogtreecommitdiffstats
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:40:06 -0500
commit3a4a95c7b62cd86dad7c0b47df073f6c44ae6dec (patch)
tree256d4b0575262792ed3bf6205ef123e6c369cb4d
parentce4822c046c154b92e0c46b8e51395a611f9f47b (diff)
downloadjquery-3a4a95c7b62cd86dad7c0b47df073f6c44ae6dec.tar.gz
jquery-3a4a95c7b62cd86dad7c0b47df073f6c44ae6dec.zip
Release: allow local and github dists
-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 = [