We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf956d commit 0b025e3Copy full SHA for 0b025e3
src/utils.ts
@@ -7,7 +7,7 @@ export const mapDocsToClients = (documents: string[], clients: string[]) => {
7
8
const docsWithClient = (client: string) => documents.filter(d => !mappedDocs.has(d)).filter((file: string) => {
9
const clientInExt = new RegExp(`\\.${client}\\.(gql|graphql)$`)
10
- const clientInPath = new RegExp(`\\/${client}\\/(?=${file.split('/').pop()?.replace(/\./g, '\\.')})`)
+ const clientInPath = new RegExp(`\\/${client}\\/(.+\\/)?(?=${file.split('/').pop()?.replace(/\./g, '\\.')})`)
11
12
const clientSpecified = clientInExt.test(file) || clientInPath.test(file)
13
0 commit comments