aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2016-05-09 11:57:31 -0400
committerTimmy Willison <timmywillisn@gmail.com>2016-05-13 11:35:15 -0400
commit5086b3012d0f29de04b6823732b6f48250adda97 (patch)
tree737c3e5e9eeba4a95a65eeb86ba86e115f8f94b5 /build
parent07c11c03cc7f6d182eab9b50e2f3908ee397f70f (diff)
downloadjquery-5086b3012d0f29de04b6823732b6f48250adda97.tar.gz
jquery-5086b3012d0f29de04b6823732b6f48250adda97.zip
Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
Diffstat (limited to 'build')
-rw-r--r--build/release/dist.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 66cc6cde7..84ce35d3c 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -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 );