Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: codegen error on layers extend #274

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cpreston321
Copy link
Contributor

@cpreston321 cpreston321 commented Dec 8, 2022

fixes: #271

@Diizzayy what basically happen'd -- it was watching on all paths of extend even in node_modules/ folder that would not map to any client docs then error out but where all the same file. To resolve this we block all unlink events and path changes in ../ that basically represent the theme it's extending in watch mode.

example of event:

✔ Nitro built in 420 ms                                                                                                                         nitro 10:02:50
[add] PATH:  ../basic/node_modules/nuxt-graphql-client/examples/extends/queries/test2.gql                                                             10:03:00
allowDocument:  true                                                                                                                                  10:03:00
[add] PATH:  ../basic/node_modules/nuxt-graphql-client/playground/node_modules/nuxt-graphql-client/examples/extends/queries/test2.gql                 10:03:00
allowDocument:  true                                                                                                                                  10:03:00
[unlink] PATH:  queries/test1.gql 

@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #274 (a4a9bb7) into main (7207c06) will decrease coverage by 0.45%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #274      +/-   ##
==========================================
- Coverage   93.70%   93.25%   -0.46%     
==========================================
  Files           6        6              
  Lines         620      623       +3     
  Branches      122      122              
==========================================
  Hits          581      581              
- Misses         39       42       +3     
Impacted Files Coverage Δ
src/module.ts 89.09% <0.00%> (-0.82%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Diizzayy Diizzayy self-assigned this Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled Codegen error on create of .gql|graphql file in dev.
2 participants