-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Implement root tasks #1040
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
Implement root tasks #1040
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
Windows |
Hello! This would be huge! How can we help for this to be merged? |
@foogazy thanks for your interest! This is coming soon, although there may be some slight tweaks. The most helpful thing would be to verify that it works for your use cases. |
@gsoltis Hello! Thank you so much for all your amazing work! Sure! I tested on my system at can verify it works fine: System details:
Hope this helps. :) |
@foogazy Awesome, glad to hear it! |
Oh man, I wish this was merged. |
@gsoltis Does this support referencing root package-tasks in |
Adds the ability to run tasks from the root
package.json
file.Implementation notes that will need to be documented:
turbo.json
must have an entry for_root#<task>
to enable running that task at the root._root
is available in filters, soturbo run my-task --filter=_root
will run_root#my-task
.turbo.json
for_root#task
, thenturbo run task
will also run that task for the root.package.json
has"build": "turbo run build"
, then even after opting in,turbo run build --filter=_root
will produce an error. This cycle detection can be circumvented with aliases or other indirection used to runturbo
.inputs
specified, they should hit cache if nothing relevant has changed.Additional changes:
e2e
tests now include a root taskturbo
. e.g. if you definedfoo#my-task
but notmy-task
inturbo.json
, previously runningturbo run my-task
would be an error, now it will runfoo#my-task
.Fixes #845