Skip to content

Commit 68e648b

Browse files
committed
chore(deps): switch to tinyglobby
1 parent c907479 commit 68e648b

File tree

4 files changed

+1932
-2468
lines changed

4 files changed

+1932
-2468
lines changed

packages/plugin/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
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",

packages/plugin/src/documents.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path';
22
import debugFactory from 'debug';
3-
import fg from 'fast-glob';
3+
import { globSync } from 'tinyglobby';
44
import { GraphQLProjectConfig } from 'graphql-config';
55
import { Source } from '@graphql-tools/utils';
66
import { 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);

packages/plugin/src/schema.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import debugFactory from 'debug';
2-
import fg from 'fast-glob';
2+
import { globSync } from 'tinyglobby';
33
import { BREAK, GraphQLSchema, visit } from 'graphql';
44
import { GraphQLProjectConfig } from 'graphql-config';
55
import { 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);

0 commit comments

Comments
 (0)