node

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageInfo

type PackageInfo struct {
	Name       string     `json:"name"`
	Version    string     `json:"version"`
	Repository string     `json:"repository"`
	Workspaces Workspaces `json:"workspaces"`

	Path     string
	RootPath string
}

type PackageService

type PackageService interface {
	ReadPackageInfo(filename string) (*PackageInfo, error)
	GetWorkspaces(p *PackageInfo) ([]*PackageInfo, error)
}

func NewPackageService

func NewPackageService(rootPath string) PackageService

type Workspaces

type Workspaces struct {
	Value []string
}

func (*Workspaces) UnmarshalJSON

func (w *Workspaces) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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