ardatan / graphql-toolkit

A set of utils for faster development of GraphQL tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commit 6d99f92 uses globby which breaks file scanning in Next.js apps

msheakoski opened this issue · comments

Commit 6d99f92 introduced a change where glob was switched to globby in file-scanner.ts. Because globby skips folders with symbols in it's name, scanning for gql fails when it is located inside of files containing brackets such as src/pages/[category]/[product].tsx which are used in nearly all Next.js apps for routing.

Related issue: dotansimha/graphql-code-generator#3058

It is related to document loader in core not file-scanner. But you're right, this is a bug. We're currently investigating it.

Fixed in v0.8.1!