Skip to content
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

fix(Turborepo): Drop root package removal #6208

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading