File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,22 @@ function buildCDNPackage( callback ) {
8484 jqueryUi : jqueryUi ,
8585 themeVars : null
8686 } ) ;
87- packager . ready . then ( function ( ) {
88- removeExternals ( packager ) ;
89- addManifest ( packager ) ;
90- packager . toZip ( target , {
91- basedir : ""
92- } , function ( error ) {
93- if ( error ) {
94- Release . abort ( "Failed to zip CDN package" , error ) ;
95- }
96- callback ( ) ;
87+ packager . ready
88+ . then ( function ( ) {
89+ removeExternals ( packager ) ;
90+ addManifest ( packager ) ;
91+ packager . toZip ( target , {
92+ basedir : ""
93+ } , function ( error ) {
94+ if ( error ) {
95+ Release . abort ( "Failed to zip the CDN package" , error ) ;
96+ }
97+ callback ( ) ;
98+ } ) ;
99+ } )
100+ . catch ( function ( error ) {
101+ Release . abort ( "Failed to create the CDN package" , error ) ;
97102 } ) ;
98- } ) ;
99103}
100104
101105Release . define ( {
You can’t perform that action at this time.
0 commit comments