Skip to content

Commit

Permalink
Renaming because transitive is too math-y
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Sep 5, 2024
1 parent b895827 commit 8998e89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions crates/turborepo-lib/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ impl Package {
.collect())
}

/// The downstream packages that depend on this package, transitively
async fn transitive_dependents(&self) -> Result<Vec<Package>, Error> {
/// The downstream packages that depend on this package, indirectly
async fn indirect_dependents(&self) -> Result<Vec<Package>, Error> {
let node: PackageNode = PackageNode::Workspace(self.name.clone());

Ok(self
Expand All @@ -367,8 +367,8 @@ impl Package {
.collect())
}

/// The upstream packages that this package depends on, transitively
async fn transitive_dependencies(&self) -> Result<Vec<Package>, Error> {
/// The upstream packages that this package depends on, indirectly
async fn indirect_dependencies(&self) -> Result<Vec<Package>, Error> {
let node: PackageNode = PackageNode::Workspace(self.name.clone());

Ok(self
Expand Down
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/command-query.t
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ Get dependencies of `my-app`
}
}
Get transitive dependencies of `my-app`
$ ${TURBO} query "query { packages(filter: { equal: { field: NAME, value: \"my-app\" } }) { transitiveDependencies { name } } }" | jq
Get the indirect dependencies of `my-app`
$ ${TURBO} query "query { packages(filter: { equal: { field: NAME, value: \"my-app\" } }) { indirectDependencies { name } } }" | jq
WARNING query command is experimental and may change in the future
{
"data": {
"packages": [
{
"transitiveDependencies": [
"indirectDependencies": [
{
"name": "//"
},
Expand Down

0 comments on commit 8998e89

Please sign in to comment.