pub fn target_is_workspace(
        &self,
        root: &AbsoluteSystemPath,
        target: &AbsoluteSystemPath,
    ) -> Result<bool, PathError> {
        let search_value = root.anchor(target)?;

        let includes = self.directory_inclusions.is_match(&search_value);
        let excludes = self.directory_exclusions.is_match(&search_value);

        Ok(includes && !excludes)
    }
Checks if the given `target` matches this `WorkspaceGlobs`.

Errors:
This function returns an Err if `root` is not a valid anchor for
`target`
crates/turborepo-repository/src/workspaces.rs