Help us shape the future of Go! Take the 2026 Go Developer Survey

pnpm

package
v0.46.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pnpm provides utilities to install pnpm packages and tools.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInstall indicates a failure to install pnpm packages or execute build steps.
	ErrInstall = errors.New("failed to install pnpm packages")

	// ErrCannotExtractRepo indicates that the repository path cannot be extracted from a package URL.
	ErrCannotExtractRepo = errors.New("cannot extract repo from package URL")

	// ErrMissingPackageURL indicates that a tool configuration has build steps but no package URL.
	ErrMissingPackageURL = errors.New("has build steps but no package URL")

	// ErrMissingSrcDir indicates that a tool configuration has build steps but no source directory.
	ErrMissingSrcDir = errors.New("has build steps but no source directory")

	// ErrMissingExecutable indicates that node or pnpm is not installed or not in PATH.
	ErrMissingExecutable = errors.New("missing required executable for pnpm tool installation")
)

Functions

func Install

func Install(ctx context.Context, pnpmTools []*config.PNPMTool, binDir string) error

Install installs PNPM tools into the specified binDir environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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