From: Timmy Willison Date: Mon, 9 May 2016 15:57:31 +0000 (-0400) Subject: Release: copy sizzle separately into an 'external' folder X-Git-Tag: 2.2.4~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f4253b8ef50f0d16ac62108699fef83e8d3662ad;p=jquery.git Release: copy sizzle separately into an 'external' folder Fixes gh-2945 --- diff --git a/build/release/dist.js b/build/release/dist.js index 178e38cab..3ad00c590 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -12,7 +12,6 @@ module.exports = function( Release, complete ) { // These files are included with the distribution files = [ "src", - "external/sizzle", "LICENSE.txt", "AUTHORS.txt", "package.json" @@ -56,7 +55,9 @@ module.exports = function( Release, complete ) { function copy() { // Copy dist files - var distFolder = Release.dir.dist + "/dist"; + var distFolder = Release.dir.dist + "/dist", + externalFolder = Release.dir.dist + "/external"; + shell.mkdir( "-p", distFolder ); [ "dist/jquery.js", @@ -66,6 +67,10 @@ module.exports = function( Release, complete ) { shell.cp( "-f", Release.dir.repo + "/" + file, distFolder ); } ); + // Copy Sizzle + shell.mkdir( "-p", externalFolder ); + shell.cp( "-rf", Release.dir.repo + "/external/sizzle", externalFolder ); + // Copy other files files.forEach( function( file ) { shell.cp( "-rf", Release.dir.repo + "/" + file, Release.dir.dist );