aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2016-05-09 13:53:03 -0400
committerTimmy Willison <timmywillisn@gmail.com>2016-05-13 11:39:25 -0400
commit376caf4da19e8fba6216de3769c25e54cb335b37 (patch)
treeb04a1bc756676a844bfd5aeb00b2a84285bd1788
parent7cb6958ab8ff20292fe6ea259f9cff3219048731 (diff)
downloadjquery-376caf4da19e8fba6216de3769c25e54cb335b37.tar.gz
jquery-376caf4da19e8fba6216de3769c25e54cb335b37.zip
Release: remove extraneous files from dist during release
Fixes gh-3094 Close gh-3116
-rw-r--r--build/release.js2
-rw-r--r--build/release/dist.js15
2 files changed, 15 insertions, 2 deletions
diff --git a/build/release.js b/build/release.js
index 7fd00bd8c..f3ba4c8f3 100644
--- a/build/release.js
+++ b/build/release.js
@@ -55,6 +55,6 @@ module.exports = function( Release ) {
module.exports.dependencies = [
"archiver@0.14.2",
- "shelljs@0.2.6",
+ "shelljs@0.7.0",
"npm@2.3.0"
];
diff --git a/build/release/dist.js b/build/release/dist.js
index 3ad00c590..ffa6e1768 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -56,7 +56,20 @@ module.exports = function( Release, complete ) {
// Copy dist files
var distFolder = Release.dir.dist + "/dist",
- externalFolder = Release.dir.dist + "/external";
+ externalFolder = Release.dir.dist + "/external",
+ rmIgnore = [
+ "README.md",
+ "node_modules"
+ ].map( function( file ) {
+ return Release.dir.dist + "/" + file;
+ } );
+
+ shell.config.globOptions = {
+ ignore: rmIgnore
+ };
+
+ // Remove extraneous files before copy
+ shell.rm( "-rf", Release.dir.dist + "/**/*" );
shell.mkdir( "-p", distFolder );
[