Skip to main content

Class: Repository

@pvm/repository.Repository

Constructors

constructor

• new Repository(cwd, config, ref)

Parameters

NameType
cwdstring
configConfig
refstring | void

Defined in

packages/pvm-repository/lib/repository.ts:43

Properties

config

• config: Config

Defined in

packages/pvm-repository/lib/repository.ts:40


cwd

• cwd: string

Defined in

packages/pvm-repository/lib/repository.ts:39


ref

• ref: undefined | string

Defined in

packages/pvm-repository/lib/repository.ts:41

Accessors

dependantsTree

• get dependantsTree(): Map<Pkg, Pkg[]>

Returns

Map<Pkg, Pkg[]>

Defined in

packages/pvm-repository/lib/repository.ts:122


isMonorepo

• get isMonorepo(): boolean

Returns

boolean

Defined in

packages/pvm-repository/lib/repository.ts:140


packagesList

• get packagesList(): readonly Pkg[]

Returns

readonly Pkg[]

Defined in

packages/pvm-repository/lib/repository.ts:101


packagesMaybeWithRoot

• get packagesMaybeWithRoot(): ImmutablePkgSet<Pkg>

Returns

ImmutablePkgSet<Pkg>

Defined in

packages/pvm-repository/lib/repository.ts:106


pkgset

• get pkgset(): ImmutablePkgSet<Pkg>

Returns

ImmutablePkgSet<Pkg>

Defined in

packages/pvm-repository/lib/repository.ts:81


registry

• get registry(): string

Returns

string

Defined in

packages/pvm-repository/lib/repository.ts:173


rootPkg

• get rootPkg(): null | Pkg

Returns

null | Pkg

Defined in

packages/pvm-repository/lib/repository.ts:145


unifiedGroupsMWR

• get unifiedGroupsMWR(): UnifiedGroups

Returns

UnifiedGroups

Defined in

packages/pvm-repository/lib/repository.ts:116

Methods

applyActualDeps

â–¸ applyActualDeps(pkg, newVersions?): AppliedPkg

Parameters

NameTypeDefault value
pkgPkgundefined
newVersionsundefined | Map<Pkg, string>undefined

Returns

AppliedPkg

Defined in

packages/pvm-repository/lib/repository.ts:268


applyVersions

â–¸ applyVersions(_newVersions, opts?): ImmutablePkgSet<AppliedPkg>

Parameters

NameType
_newVersionsMap<Pkg, string>
optsApplyVersionOpts

Returns

ImmutablePkgSet<AppliedPkg>

Defined in

packages/pvm-repository/lib/repository.ts:216


getDependants

â–¸ getDependants(packages, opts?): IterableIterator<Pkg>

Parameters

NameType
packagesImmutablePkgSet<Pkg>
opts?Object
opts.includeProvided?boolean

Returns

IterableIterator<Pkg>

Defined in

packages/pvm-repository/lib/repository.ts:283


getDependantsMap

â–¸ getDependantsMap(packages, __namedParameters?): Map<Pkg, Set<Pkg>>

Parameters

NameType
packagesImmutablePkgSet<Pkg>
__namedParametersObject
__namedParameters.includeProvided?boolean

Returns

Map<Pkg, Set<Pkg>>

Defined in

packages/pvm-repository/lib/repository.ts:181


getHostApi

â–¸ getHostApi(): Promise<HostApi>

Returns

Promise<HostApi>

Defined in

packages/pvm-repository/lib/repository.ts:96


getLastReleaseTag

â–¸ getLastReleaseTag(target?): null | string

Parameters

NameType
target?string

Returns

null | string

Defined in

packages/pvm-repository/lib/repository.ts:177


getVersionsMap

â–¸ getVersionsMap(fromPackage?): Record<string, string>

Parameters

NameTypeDefault value
fromPackagebooleanfalse

Returns

Record<string, string>

Defined in

packages/pvm-repository/lib/repository.ts:85


hintsContext

â–¸ hintsContext(): Promise<HintsContext>

Returns

Promise<HintsContext>

Defined in

packages/pvm-repository/lib/repository.ts:150


validateConfig

â–¸ validateConfig(): void

Returns

void

Defined in

packages/pvm-repository/lib/repository.ts:62


init

â–¸ Static init(repositoryPath, opts?): Promise<Repository>

Parameters

NameType
repositoryPathstring
optsRepositoryInitOpts

Returns

Promise<Repository>

Defined in

packages/pvm-repository/lib/repository.ts:51