Permalink
Browse files

Release: Remove externals directory from CDN zip

Closes gh-1741
  • Loading branch information...
scottgonzalez committed Sep 7, 2016
1 parent 8c66934 commit 7b7b9b6d8616873c8da22043d499ffde376a2b12
Showing with 9 additions and 0 deletions.
  1. +9 −0 build/release.js
@@ -35,6 +35,14 @@ function replaceAtVersion() {
return matches;
}
function removeExternals ( packager ) {
Object.keys( packager.builtFiles ).forEach( function( filepath ) {
if ( /^external\//.test( filepath ) ) {
delete packager.builtFiles[ filepath ];
}
} );
}
function addManifest( packager ) {
var output = packager.builtFiles;
output.MANIFEST = Object.keys( output ).sort( function( a, b ) {
@@ -62,6 +70,7 @@ function buildCDNPackage( callback ) {
themeVars: null
} );
packager.ready.then( function() {
removeExternals( packager );
addManifest( packager );
packager.toZip( target, {
basedir: ""

0 comments on commit 7b7b9b6

Please sign in to comment.