From dcd2c8f3e37d7fe47420b1b95d75e7a0c957abde Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Thu, 29 Jan 2015 15:36:48 -0800 Subject: [PATCH] Release: dist can be run during a test --- build/release.js | 6 ------ build/release/dist.js | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/build/release.js b/build/release.js index d3206a956..b5eaf4df5 100644 --- a/build/release.js +++ b/build/release.js @@ -58,12 +58,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 2c6cfc645..93689b7ed 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -104,7 +104,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, @@ -112,5 +112,5 @@ module.exports = function( Release, complete ) { Release._section( "Pushing files to distribution repo" ), push - ], complete); + ], complete ); }; -- 2.39.5