Skip to content

Commit

Permalink
fix(Turborepo): Drop root package removal (#6208)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Soltis <Greg Soltis>
  • Loading branch information
Greg Soltis authored Oct 18, 2023
1 parent 9e36691 commit cb70622
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/turborepo-lib/src/run/scope/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl<'a, T: PackageChangeDetector> FilterResolver<'a, T> {
// inference is None only if we are in the root
let is_all_packages = patterns.is_empty() && self.inference.is_none();

let mut filter_patterns = if is_all_packages {
let filter_patterns = if is_all_packages {
// return all packages in the workspace
self.pkg_graph
.workspaces()
Expand All @@ -154,9 +154,6 @@ impl<'a, T: PackageChangeDetector> FilterResolver<'a, T> {
self.get_packages_from_patterns(patterns)?
};

// if the root package is in the filtered packages, remove it
filter_patterns.remove(&WorkspaceName::Root);

Ok(filter_patterns)
}

Expand Down

0 comments on commit cb70622

Please sign in to comment.