aboutsummaryrefslogtreecommitdiffstats
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:36:45 -0400
commit7cb6958ab8ff20292fe6ea259f9cff3219048731 (patch)
tree62adc7021e8fdff9fb034d41247400d1990fffd1
parentfabdc35eee7251573429326548abe823b8abeea4 (diff)
downloadjquery-7cb6958ab8ff20292fe6ea259f9cff3219048731.tar.gz
jquery-7cb6958ab8ff20292fe6ea259f9cff3219048731.zip
Release: copy sizzle separately into an 'external' folder
Fixes gh-2945
-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 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 );