aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2015-01-29 15:36:48 -0800
committerTimmy Willison <timmywillisn@gmail.com>2015-01-29 15:36:48 -0800
commitaae998b5449f35dc71e87e360aee5bd0022e7c8e (patch)
treee14fe6a501c5e748140219501c869da0ebe2322d /build
parent61224f5fef4336cd47cb26be74f9758096f7f956 (diff)
downloadjquery-aae998b5449f35dc71e87e360aee5bd0022e7c8e.tar.gz
jquery-aae998b5449f35dc71e87e360aee5bd0022e7c8e.zip
Release: dist can be run during a test
Diffstat (limited to 'build')
-rw-r--r--build/release.js6
-rw-r--r--build/release/dist.js4
2 files changed, 2 insertions, 8 deletions
diff --git a/build/release.js b/build/release.js
index 95cb8372d..388bea873 100644
--- a/build/release.js
+++ b/build/release.js
@@ -45,12 +45,6 @@ module.exports = function( Release ) {
* @param {Function} callback
*/
dist: function( callback ) {
-
- if ( Release.isTest ) {
- callback();
- return;
- }
-
dist( Release, callback );
}
});
diff --git a/build/release/dist.js b/build/release/dist.js
index 1ebeee0b9..21e7d5662 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -101,7 +101,7 @@ module.exports = function( Release, complete ) {
Release.dir.repo = Release.dir.dist;
}
- Release.walk([
+ Release.walk( [
Release._section( "Copy files to distribution repo" ),
clone,
copy,
@@ -109,5 +109,5 @@ module.exports = function( Release, complete ) {
Release._section( "Pushing files to distribution repo" ),
push
- ], complete);
+ ], complete );
};