File tree 4 files changed +1932
-2468
lines changed
4 files changed +1932
-2468
lines changed Original file line number Diff line number Diff line change 63
63
"@graphql-tools/graphql-tag-pluck" : " ^8.3.4" ,
64
64
"@graphql-tools/utils" : " ^10.0.0" ,
65
65
"debug" : " ^4.3.4" ,
66
- "fast-glob" : " ^3.2.12" ,
67
66
"graphql-config" : " ^5.1.3" ,
68
67
"graphql-depth-limit" : " ^1.1.0" ,
69
- "lodash.lowercase" : " ^4.3.0"
68
+ "lodash.lowercase" : " ^4.3.0" ,
69
+ "tinyglobby" : " ^0.2.12"
70
70
},
71
71
"devDependencies" : {
72
72
"@apollo/subgraph" : " ^2.9.3" ,
Original file line number Diff line number Diff line change 1
1
import path from 'node:path' ;
2
2
import debugFactory from 'debug' ;
3
- import fg from 'fast-glob ' ;
3
+ import { globSync } from 'tinyglobby ' ;
4
4
import { GraphQLProjectConfig } from 'graphql-config' ;
5
5
import { Source } from '@graphql-tools/utils' ;
6
6
import { ModuleCache } from './cache.js' ;
@@ -47,7 +47,7 @@ export const getDocuments = (project: GraphQLProjectConfig): Source[] => {
47
47
} ) ;
48
48
if ( debug . enabled ) {
49
49
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 } ) ;
51
51
debug ( 'Operations pointers %O' , operationsPaths ) ;
52
52
}
53
53
siblings = handleVirtualPath ( documents ) ;
Original file line number Diff line number Diff line change 1
1
import debugFactory from 'debug' ;
2
- import fg from 'fast-glob ' ;
2
+ import { globSync } from 'tinyglobby ' ;
3
3
import { BREAK , GraphQLSchema , visit } from 'graphql' ;
4
4
import { GraphQLProjectConfig } from 'graphql-config' ;
5
5
import { ModuleCache } from './cache.js' ;
@@ -57,7 +57,7 @@ export function getSchema(project: GraphQLProjectConfig): Schema {
57
57
58
58
if ( debug . enabled ) {
59
59
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 } ) ;
61
61
debug ( 'Schema pointers %O' , schemaPaths ) ;
62
62
}
63
63
schemaCache . set ( schemaKey , schema ) ;
You can’t perform that action at this time.
0 commit comments