pnpm

package
v2.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PluginName = "pnpm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin implements ecosystems.SCAPlugin for pnpm projects. It shells out to `pnpm list --lockfile-only --json` to resolve the dependency graph from the lockfile without installing node_modules. Rush monorepos (rush.json) are handled by an adapter in rush.go that synthesizes the workspace context Rush generates at install time; both adapters produce the same scanTarget shape so the runner is uniform.

func (Plugin) BuildDepGraphsFromDir

func (p Plugin) BuildDepGraphsFromDir(
	ctx context.Context,
	log logger.Logger,
	dir string,
	options *ecosystems.SCAPluginOptions,
	onGraph ecosystems.OnGraphFunc,
) error

func (Plugin) GetName

func (p Plugin) GetName() string

Jump to

Keyboard shortcuts

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