prisma-labs / yoga2

A lightweight 'Ruby on Rails'-like framework for GraphQL
https://www.graphql.yoga
MIT License
347 stars 15 forks source link

`yoga dev` possibly not watching all *.ts files #126

Closed DevanB closed 5 years ago

DevanB commented 5 years ago

Describe the bug I'm using the data-sources model (as prescribed by Tim in the Nexus docs) and have noticed that changes I make in my /src/data-sources/*.ts files are not being applied. I have to manually restart the process for those changes to be picked up.

To Reproduce Steps to reproduce the behavior:

  1. Create a new project and start said project.
  2. Add a .ts file to a new /src/data-sources/ folder
  3. Reference and use that new file from anywhere.
  4. Hopefully you see an error or oddity because that new code was not picked up by the dev process.

Expected behavior I expect that all changes to any .ts files within the src folder would be recognized on file save.

Screenshots If needed, I can put together a small video showcasing the issue.

Versions (please complete the following information):

DevanB commented 5 years ago

There is a similar issue pertaining to Windows at #121

Weakky commented 5 years ago

Hey there,

I made an answer at #121. This issue being kind of a duplicate of the other one, I'll close this one now and let the other one open til we're sure that everything's fixed.

Thanks 🙏