]> source.dussan.org Git - jquery.git/commitdiff
Release: copy sizzle separately into an 'external' folder
authorTimmy Willison <timmywillisn@gmail.com>
Mon, 9 May 2016 15:57:31 +0000 (11:57 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Fri, 13 May 2016 15:35:15 +0000 (11:35 -0400)
Fixes gh-2945

build/release/dist.js

index 66cc6cde7339d734b57025d19c2b5538426be324..84ce35d3c33d109a5e306e928b07f209745089f1 100644 (file)
@@ -12,7 +12,6 @@ module.exports = function( Release, files, complete ) {
                // These files are included with the distribution
                extras = [
                        "src",
-                       "external/sizzle",
                        "LICENSE.txt",
                        "AUTHORS.txt",
                        "package.json"
@@ -56,12 +55,18 @@ module.exports = function( Release, files, 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 );
                files.forEach( function( file ) {
                        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
                extras.forEach( function( file ) {
                        shell.cp( "-rf", Release.dir.repo + "/" + file, Release.dir.dist );