filter

package
v0.0.0-...-0a43815 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher = func(pkgName string) bool

type PackageInference

type PackageInference struct {
	// PackageName, if set, means that we have determined that filters without a package-specifier
	// should get this package name
	PackageName string
	// DirectoryRoot is used to infer a "parentDir" for the filter in the event that we haven't
	// identified a specific package. If the filter already contains a parentDir, this acts as
	// a prefix. If the filter does not contain a parentDir, we consider this to be a glob for
	// all subdirectories
	DirectoryRoot turbopath.RelativeSystemPath
}

PackageInference holds the information we have inferred from the working-directory (really --infer-filter-root flag) about which packages are of interest.

type PackagesChangedInRange

type PackagesChangedInRange = func(fromRef string, toRef string) (util.Set, error)

PackagesChangedInRange is the signature of a function to provide the set of packages that have changed in a particular range of git refs.

type Resolver

type Resolver struct {
	Graph                  *dag.AcyclicGraph
	WorkspaceInfos         workspace.Catalog
	Cwd                    turbopath.AbsoluteSystemPath
	Inference              *PackageInference
	PackagesChangedInRange PackagesChangedInRange
	Logger                 hclog.Logger
}

func (*Resolver) GetPackagesFromPatterns

func (r *Resolver) GetPackagesFromPatterns(patterns []string) (util.Set, error)

GetPackagesFromPatterns compiles filter patterns and applies them, returning the selected packages

type SelectedPackages

type SelectedPackages struct {
	// contains filtered or unexported fields
}

type TargetSelector

type TargetSelector struct {
	// contains filtered or unexported fields
}

func ParseTargetSelector

func ParseTargetSelector(rawSelector string) (*TargetSelector, error)

ParseTargetSelector is a function that returns pnpm compatible --filter command line flags

func (*TargetSelector) IsValid

func (ts *TargetSelector) IsValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL