Class: Repository
@pvm/repository.Repository
Constructors
constructor
• new Repository(cwd
, config
, ref
)
Parameters
Name | Type |
---|---|
cwd | string |
config | Config |
ref | string | 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
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
Defined in
packages/pvm-repository/lib/repository.ts:106
pkgset
• get
pkgset(): ImmutablePkgSet
<Pkg
>
Returns
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
Defined in
packages/pvm-repository/lib/repository.ts:116
Methods
applyActualDeps
â–¸ applyActualDeps(pkg
, newVersions?
): AppliedPkg
Parameters
Name | Type | Default value |
---|---|---|
pkg | Pkg | undefined |
newVersions | undefined | Map <Pkg , string > | undefined |
Returns
Defined in
packages/pvm-repository/lib/repository.ts:268
applyVersions
â–¸ applyVersions(_newVersions
, opts?
): ImmutablePkgSet
<AppliedPkg
>
Parameters
Name | Type |
---|---|
_newVersions | Map <Pkg , string > |
opts | ApplyVersionOpts |
Returns
Defined in
packages/pvm-repository/lib/repository.ts:216
getDependants
â–¸ getDependants(packages
, opts?
): IterableIterator
<Pkg
>
Parameters
Name | Type |
---|---|
packages | ImmutablePkgSet <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
Name | Type |
---|---|
packages | ImmutablePkgSet <Pkg > |
__namedParameters | Object |
__namedParameters.includeProvided? | boolean |
Returns
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
Name | Type |
---|---|
target? | string |
Returns
null
| string
Defined in
packages/pvm-repository/lib/repository.ts:177
getVersionsMap
â–¸ getVersionsMap(fromPackage?
): Record
<string
, string
>
Parameters
Name | Type | Default value |
---|---|---|
fromPackage | boolean | false |
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
Name | Type |
---|---|
repositoryPath | string |
opts | RepositoryInitOpts |
Returns
Promise
<Repository
>