mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Release: dist can be run during a test
This commit is contained in:
parent
61224f5fef
commit
aae998b544
@ -45,12 +45,6 @@ module.exports = function( Release ) {
|
||||
* @param {Function} callback
|
||||
*/
|
||||
dist: function( callback ) {
|
||||
|
||||
if ( Release.isTest ) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
dist( Release, callback );
|
||||
}
|
||||
});
|
||||
|
@ -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 );
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user