aboutsummaryrefslogtreecommitdiffstats
path: root/build/release/dist.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/release/dist.js')
-rw-r--r--build/release/dist.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 84ce35d3c..da9ad2281 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -56,7 +56,22 @@ module.exports = function( Release, files, complete ) {
// Copy dist files
var distFolder = Release.dir.dist + "/dist",
- externalFolder = Release.dir.dist + "/external";
+ externalFolder = Release.dir.dist + "/external",
+ rmIgnore = files
+ .concat( [
+ "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 );
files.forEach( function( file ) {