bun

package
v2.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PluginName = "bun"
)

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 Bun projects. It uses `bun why '*' --top` to resolve the full dependency graph without bespoke lockfile parsing, requiring bun >= 1.2.19.

func (Plugin) BuildDepGraphsFromDir

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

BuildDepGraphsFromDir discovers bun.lock files under dir and produces dep graphs for each one. Workspace projects yield one SCAResult per workspace package plus one for the root; non-workspace projects yield a single result.

Each result is emitted via onGraph as soon as it's built — the plugin holds at most one lockfile's worth of results in memory at any time.

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