File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -202,20 +202,10 @@ function assertES5() {
202202 }
203203 } ) ;
204204
205- // Filter out min and plotly-geo-assets.js since one is unnecessary
206- // and the other is super slow:
207- var files = fs . readdirSync ( path . join ( __dirname , '../dist' ) ) ;
208- var validFiles = [ ] ;
209- for ( var i = 0 ; i < files . length ; i ++ ) {
210- var f = files [ i ] ;
211- var isMin = ! / [ ^ ( m i n ) ] \. j s $ / . test ( f ) ;
212- var isGeo = / g e o - a s s e t s / . test ( f ) ;
213- if ( ! isMin && ! isGeo ) {
214- validFiles . push ( path . join ( __dirname , '../dist' , f ) ) ;
215- }
216- }
205+ var files = constants . partialBundlePaths . map ( function ( f ) { return f . dist ; } ) ;
206+ files . unshift ( constants . pathToPlotlyDist ) ;
217207
218- var report = cli . executeOnFiles ( validFiles ) ;
208+ var report = cli . executeOnFiles ( files ) ;
219209 var formatter = cli . getFormatter ( ) ;
220210
221211 var errors = [ ] ;
You can’t perform that action at this time.
0 commit comments