gazelle

package
v1.505.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PnpmLockfileV5 added in v1.503.4

type PnpmLockfileV5 struct {
	Dependencies         packageInfoV5
	DevDependencies      packageInfoV5 `yaml:"devDependencies"`
	PeerDependencies     packageInfoV5 `yaml:"peerDependencies"`
	OptionalDependencies packageInfoV5 `yaml:"optionalDependencies"`

	Importers map[string]struct {
		Dependencies         packageInfoV5
		DevDependencies      packageInfoV5 `yaml:"devDependencies"`
		PeerDependencies     packageInfoV5 `yaml:"peerDependencies"`
		OptionalDependencies packageInfoV5 `yaml:"optionalDependencies"`
	}
}

type PnpmLockfileV6 added in v1.503.4

type PnpmLockfileV6 struct {
	Dependencies         packageInfoV6
	DevDependencies      packageInfoV6 `yaml:"devDependencies"`
	PeerDependencies     packageInfoV6 `yaml:"peerDependencies"`
	OptionalDependencies packageInfoV6 `yaml:"optionalDependencies"`

	Importers map[string]struct {
		Dependencies         packageInfoV6
		DevDependencies      packageInfoV6 `yaml:"devDependencies"`
		PeerDependencies     packageInfoV6 `yaml:"peerDependencies"`
		OptionalDependencies packageInfoV6 `yaml:"optionalDependencies"`
	}
}

type PnpmProject

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

A pnpm project and its package dependencies

func (*PnpmProject) AddPackage

func (p *PnpmProject) AddPackage(pkg string, label *label.Label)

func (*PnpmProject) Get

func (p *PnpmProject) Get(pkg string) *label.Label

func (*PnpmProject) IsReferenced

func (p *PnpmProject) IsReferenced() bool

func (*PnpmProject) Parent

func (p *PnpmProject) Parent() *PnpmProject

func (*PnpmProject) Pkg

func (p *PnpmProject) Pkg() string

type PnpmProjectMap

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

A global map of pnpm projects across the bazel workspace. Projects may be from across multiple pnpm workspaces.

func NewPnpmProjectMap

func NewPnpmProjectMap() *PnpmProjectMap

PnpmProjectMap ----------------------------------------------------------

func (*PnpmProjectMap) GetProject

func (pm *PnpmProjectMap) GetProject(project string) *PnpmProject

func (*PnpmProjectMap) IsProject

func (pm *PnpmProjectMap) IsProject(project string) bool

func (*PnpmProjectMap) IsReferenced

func (pm *PnpmProjectMap) IsReferenced(project string) bool

func (*PnpmProjectMap) NewWorkspace

func (pm *PnpmProjectMap) NewWorkspace(lockfile string) *PnpmWorkspace

type PnpmWorkspace

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

A pnpm workspace and its projects

func (*PnpmWorkspace) AddProject

func (w *PnpmWorkspace) AddProject(pkg string) *PnpmProject

func (*PnpmWorkspace) AddReference

func (w *PnpmWorkspace) AddReference(pkg, linkTo string)

func (*PnpmWorkspace) IsReferenced

func (w *PnpmWorkspace) IsReferenced(project string) bool

func (*PnpmWorkspace) Root

func (w *PnpmWorkspace) Root() string

type WorkspacePackageVersionMap added in v1.503.4

type WorkspacePackageVersionMap map[string]map[string]string

func ParsePnpmLockFileDependencies

func ParsePnpmLockFileDependencies(lockfilePath string) WorkspacePackageVersionMap

Parse a lockfile and return a map of workspace projects to a map of dependency name to version.

Jump to

Keyboard shortcuts

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