File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -30,30 +30,7 @@ export default createBuilder<any>(
30
30
const result = await build . result ;
31
31
32
32
if ( result . success ) {
33
- const file = fs . readdirSync ( builderConfig . outputPath ) . filter ( f => f . includes ( 'es2015' ) ) ;
34
- const filesToRemove = file . filter ( f => f . includes ( 'polyfills' ) || f . includes ( 'runtime' ) ) ;
35
- let filesToShow = file . filter ( f => ! filesToRemove . includes ( f ) && f . endsWith ( '.js' ) ) ;
36
-
37
- let mainFile = filesToShow [ 0 ] ;
38
- let promptAvailableBundles ;
39
-
40
- if ( filesToShow . length > 1 ) {
41
- promptAvailableBundles = await inquirer
42
- . prompt ( [
43
- {
44
- type : 'list' ,
45
- name : 'bundleName' ,
46
- message : 'Select the bundle to run the analyzer?' ,
47
- choices : filesToShow ,
48
- } ,
49
- ] )
50
- . catch ( error => {
51
- context . logger . info ( error ) ;
52
- } ) ;
53
-
54
- mainFile = promptAvailableBundles . bundleName ;
55
- }
56
-
33
+ const mainFile = '*es2015.*.js' ;
57
34
const explorerCommand = `npx source-map-explorer ${ builderConfig . outputPath } /${ mainFile } ` ;
58
35
const { stdout, stderr } = await execAsync ( explorerCommand ) ;
59
36
context . logger . info ( stdout ) ;
You can’t perform that action at this time.
0 commit comments