File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,20 +459,12 @@ class TaskHasher {
459459 if ( ! this . filesetHashes [ mapKey ] ) {
460460 this . filesetHashes [ mapKey ] = new Promise ( async ( res ) => {
461461 const parts = [ ] ;
462- if ( fileset . indexOf ( '*' ) > - 1 ) {
463- this . projectGraph . allWorkspaceFiles
464- . filter ( ( f ) => minimatch ( f . file , withoutWorkspaceRoot ) )
465- . forEach ( ( f ) => {
466- parts . push ( f . hash ) ;
467- } ) ;
468- } else {
469- const matchingFile = this . projectGraph . allWorkspaceFiles . find (
470- ( t ) => t . file === withoutWorkspaceRoot
471- ) ;
472- if ( matchingFile ) {
473- parts . push ( matchingFile . hash ) ;
474- }
475- }
462+ this . projectGraph . allWorkspaceFiles
463+ . filter ( ( f ) => minimatch ( f . file , withoutWorkspaceRoot ) )
464+ . forEach ( ( f ) => {
465+ parts . push ( f . hash ) ;
466+ } ) ;
467+
476468 const value = this . hashing . hashArray ( parts ) ;
477469 res ( {
478470 value,
You can’t perform that action at this time.
0 commit comments