pnpm

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachPnpmLockPositions

func AttachPnpmLockPositions(g *sdk.Graph, projectDir string)

AttachPnpmLockPositions wires pnpm-lock.yaml line numbers.

Types

type LockfileDetector

type LockfileDetector struct {
	Logger     *zap.Logger
	WorkingDir string
	Fallback   sdk.Detector
}

LockfileDetector resolves dependency graphs with pnpm.

func (LockfileDetector) Applicable

func (d LockfileDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)

Applicable reports whether a pnpm lockfile is present.

func (LockfileDetector) Descriptor

func (d LockfileDetector) Descriptor() sdk.DetectorDescriptor

Descriptor describes the pnpm detector.

func (LockfileDetector) FallbackDetector

func (d LockfileDetector) FallbackDetector() sdk.Detector

FallbackDetector returns the configured fallback detector.

func (LockfileDetector) Install

Install prepares pnpm dependencies before graph resolution.

func (LockfileDetector) PackageManagerSupport

func (d LockfileDetector) PackageManagerSupport() []sdk.PackageManagerSupport

PackageManagerSupport returns pnpm package-manager discovery metadata.

func (LockfileDetector) Ready

func (d LockfileDetector) Ready() bool

Ready reports whether pnpm is available.

func (LockfileDetector) ResolveGraph

ResolveGraph resolves a pnpm dependency graph from pnpm-lock.yaml.

type NativeDetector

type NativeDetector struct {
	Logger     *zap.Logger
	WorkingDir string
	Fallback   sdk.Detector
}

NativeDetector resolves dependency graphs with pnpm CLI commands.

func (NativeDetector) Applicable

func (d NativeDetector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)

Applicable reports whether pnpm manifests are present.

func (NativeDetector) Descriptor

func (d NativeDetector) Descriptor() sdk.DetectorDescriptor

Descriptor describes the pnpm CLI fallback detector.

func (NativeDetector) FallbackDetector

func (d NativeDetector) FallbackDetector() sdk.Detector

FallbackDetector returns the configured fallback detector.

func (NativeDetector) Install

Install prepares pnpm dependencies before graph resolution.

func (NativeDetector) PackageManagerSupport

func (d NativeDetector) PackageManagerSupport() []sdk.PackageManagerSupport

PackageManagerSupport returns discovery metadata for the internal pnpm CLI fallback detector.

func (NativeDetector) Ready

func (d NativeDetector) Ready() bool

Ready reports whether pnpm is available.

func (NativeDetector) ResolveGraph

ResolveGraph resolves a pnpm dependency graph via pnpm list.

Jump to

Keyboard shortcuts

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