这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: allow Watch Mode with --root-turbo-json #10687

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

Merged
merged 19 commits into from
Jul 22, 2025
Merged

feat: allow Watch Mode with --root-turbo-json #10687

merged 19 commits into from
Jul 22, 2025

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Jul 17, 2025

Description

Unblock Watch Mode from being used with --root-turbo-json.

Testing Instructions

I tested this manually by using turbo watch lint --root-turbo-json=./some-dir/turbo.json in a create-turbo and changing that file. The tasks would be picked up and re-ran the same as if I omitted the --root-turbo-json and used a standard path.

I also tried it with a JSONC and it worked.

Copy link

vercel bot commented Jul 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 4:03am

@anthonyshew anthonyshew marked this pull request as ready for review July 18, 2025 02:14
@anthonyshew anthonyshew requested a review from a team as a code owner July 18, 2025 02:14
@anthonyshew anthonyshew changed the title feat: allow Watch Mode with --root-turbo-json feat: allow Watch Mode with --root-turbo-json Jul 18, 2025
Copy link
Member

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently does not catch any changes if the turbo.json doesn't reside inside of the repository.

We need to either:

  • warn users that turbo.json outside of the repository will not have changes picked up
  • start watching outside the repo in the directory that the root turbo.json
    If we want to get this out, I think the former is the better option. The second one might be a little tricky to make sure we don't watch too many files.

@anthonyshew
Copy link
Contributor Author

Thanks for the review, @chris-olszewski. Should have all those noob mistakes buttoned up and chose to go with:

warn users that turbo.json outside of the repository will not have changes picked up

@anthonyshew anthonyshew merged commit 3bc1da1 into main Jul 22, 2025
40 checks passed
@anthonyshew anthonyshew deleted the shew/45eaf branch July 22, 2025 14:10
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.

2 participants