Skip to content

Executing turbo tasks for staged files #9300

Closed Answered by bhunjadi
robert-melonn asked this question in Help
Discussion options

You must be logged in to vote

We're having the same kind of issue after migrating from nx.

I found this might work:

turbo ls --filter="...[--staged]"
# or 
turbo ls --filter="...[--cached]"

Because of ... in filter, this will also include all workspaces that depend on the changed workspaces. Leave three dots out if this is not needed.
I came to this solution because it looks like turbo is using git diff behind the scenes. It feels a bit hacky, though.

If you'd want unstaged files, you could use turbo ls --filter="[--]" or turbo ls --filter="...[--]" if you want dependent workspaces.

Did you come up with a better solution?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robert-melonn
Comment options

Answer selected by robert-melonn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants