Skip to content

Commit 7b7b9b6

Browse files
committed
Release: Remove externals directory from CDN zip
Closes jquerygh-1741
1 parent 8c66934 commit 7b7b9b6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/release.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ function replaceAtVersion() {
3535
return matches;
3636
}
3737

38+
function removeExternals ( packager ) {
39+
Object.keys( packager.builtFiles ).forEach( function( filepath ) {
40+
if ( /^external\//.test( filepath ) ) {
41+
delete packager.builtFiles[ filepath ];
42+
}
43+
} );
44+
}
45+
3846
function addManifest( packager ) {
3947
var output = packager.builtFiles;
4048
output.MANIFEST = Object.keys( output ).sort( function( a, b ) {
@@ -62,6 +70,7 @@ function buildCDNPackage( callback ) {
6270
themeVars: null
6371
} );
6472
packager.ready.then( function() {
73+
removeExternals( packager );
6574
addManifest( packager );
6675
packager.toZip( target, {
6776
basedir: ""

0 commit comments

Comments
 (0)