From 7b7b9b6d8616873c8da22043d499ffde376a2b12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 7 Sep 2016 13:38:45 -0400 Subject: [PATCH] Release: Remove externals directory from CDN zip Closes gh-1741 --- build/release.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build/release.js b/build/release.js index aaaf1c053..99b26833b 100644 --- a/build/release.js +++ b/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: "" -- 2.39.5