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

You must be logged in to vote

Seems like you can more or less accomplish this today with something along these lines:

turbo build --dry=json '--filter=...[main]' | jq -r '.packages[]'

Which outputs something like:

//
some-changed-package
another-changed-package
this-package-didnt-change-directly-but-it-depends-on-some-changed-package-so-there-you-go
...

To break it down:

  1. build --dry does a dry run of the build pipeline, and the output will show even those packages without a build script (note that it doesn't have to be build, any pipeline could do)
  2. =json formats the dry run output as json
  3. for the filter:
    • ... means include dependencies (e.g. if package B depends on A, but only A changed, include both B and A)
    • [main]

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #366 on December 20, 2021 23:13.