File tree Expand file tree Collapse file tree 4 files changed +847
-340
lines changed Expand file tree Collapse file tree 4 files changed +847
-340
lines changed Original file line number Diff line number Diff line change 6363    "@graphql-tools/graphql-tag-pluck" : " ^8.3.4"  ,
6464    "@graphql-tools/utils" : " ^10.0.0"  ,
6565    "debug" : " ^4.3.4"  ,
66-     "fast-glob" : " ^3.2.12"  ,
6766    "graphql-config" : " ^5.1.3"  ,
6867    "graphql-depth-limit" : " ^1.1.0"  ,
69-     "lodash.lowercase" : " ^4.3.0" 
68+     "lodash.lowercase" : " ^4.3.0"  ,
69+     "tinyglobby" : " ^0.2.12" 
7070  },
7171  "devDependencies" : {
7272    "@apollo/subgraph" : " ^2.9.3"  ,
Original file line number Diff line number Diff line change 11import  path  from  'node:path' ; 
22import  debugFactory  from  'debug' ; 
3- import  fg   from  'fast-glob ' ; 
3+ import  {   globSync   }   from  'tinyglobby ' ; 
44import  {  GraphQLProjectConfig  }  from  'graphql-config' ; 
55import  {  Source  }  from  '@graphql-tools/utils' ; 
66import  {  ModuleCache  }  from  './cache.js' ; 
@@ -47,7 +47,7 @@ export const getDocuments = (project: GraphQLProjectConfig): Source[] => {
4747    } ) ; 
4848    if  ( debug . enabled )  { 
4949      debug ( 'Loaded %d operations' ,  documents . length ) ; 
50-       const  operationsPaths  =  fg . sync ( project . documents  as  Pointer ,  {  absolute : true  } ) ; 
50+       const  operationsPaths  =  globSync ( project . documents  as  Pointer ,  {  absolute : true ,   expandDirectories :  false  } ) ; 
5151      debug ( 'Operations pointers %O' ,  operationsPaths ) ; 
5252    } 
5353    siblings  =  handleVirtualPath ( documents ) ; 
Original file line number Diff line number Diff line change 11import  debugFactory  from  'debug' ; 
2- import  fg   from  'fast-glob ' ; 
2+ import  {   globSync   }   from  'tinyglobby ' ; 
33import  {  BREAK ,  GraphQLSchema ,  visit  }  from  'graphql' ; 
44import  {  GraphQLProjectConfig  }  from  'graphql-config' ; 
55import  {  ModuleCache  }  from  './cache.js' ; 
@@ -57,7 +57,7 @@ export function getSchema(project: GraphQLProjectConfig): Schema {
5757
5858  if  ( debug . enabled )  { 
5959    debug ( 'Schema loaded: %o' ,  schema  instanceof  GraphQLSchema ) ; 
60-     const  schemaPaths  =  fg . sync ( project . schema  as  Pointer ,  {  absolute : true  } ) ; 
60+     const  schemaPaths  =  globSync ( project . schema  as  Pointer ,  {  absolute : true ,   expandDirectories :  false  } ) ; 
6161    debug ( 'Schema pointers %O' ,  schemaPaths ) ; 
6262  } 
6363  schemaCache . set ( schemaKey ,  schema ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments