diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-09-07 13:38:45 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-09-13 09:09:36 -0400 |
commit | 7b7b9b6d8616873c8da22043d499ffde376a2b12 (patch) | |
tree | 03407c8e7d7bd1d9d021f4362f4fa88f124d8cab /build | |
parent | 8c66934434214ab92cbcf46240beb739154fdfbf (diff) | |
download | jquery-ui-7b7b9b6d8616873c8da22043d499ffde376a2b12.tar.gz jquery-ui-7b7b9b6d8616873c8da22043d499ffde376a2b12.zip |
Release: Remove externals directory from CDN zip
Closes gh-1741
Diffstat (limited to 'build')
-rw-r--r-- | build/release.js | 9 |
1 files changed, 9 insertions, 0 deletions
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: "" |