@pvm/core
Enumerations
Classes
Interfaces
- AddTagOptions
- ColumnsProvider
- Config
- ConfigResult
- DrainResult
- FetchOptions
- GetConfigOpts
- GetContentsOpts
- GetRemoteUrlOpts
- HostApi
- HttpReqError
- HttpReqOptions
- HttpResponseSuccess
- LoadPkgOptions
- MemoizedFunction
- NamedDiffShellOpts
- PkgCreateOpts
- PkgDiff
- PluginsApi
- PvmProviderInfo
- RunShellError
- Validator
Type aliases
SafeIterationResult
ฦฌ SafeIterationResult<T
>: [T
, null
] | [undefined
, Error
]
Type parameters
Name |
---|
T |
Defined in
packages/pvm-core/lib/iter/index.ts:35
Variables
debug
โข debug: any
Defined in
packages/pvm-core/lib/logger.ts:52
defaultConfig
โข defaultConfig: Config
Defined in
packages/pvm-core/pvm-defaults.ts:3
env
โข env: Env
Defined in
packages/pvm-core/lib/env.ts:70
envDefaults
โข envDefaults: Env
Defined in
packages/pvm-core/env-defaults.ts:3
error
โข error: any
Defined in
packages/pvm-core/lib/logger.ts:53
features
โข features: Object
Type declaration
Name | Type |
---|---|
attributeReleaseData | string |
commitsToNotes | string |
notifyScriptsPath | string |
preReleaseHook | string |
releaseInfoFromReleaseCtx | string |
releaseInfoFromVcs | string |
releaseType | string |
releaseTypeBuilder | string |
releaseTypeByCommits | string |
Defined in
packages/pvm-core/lib/plugins/index.ts:28
getTagsPointsAt
โข getTagsPointsAt: MemoizedFunction
<[cwd: string, ref: string], string
[]>
Defined in
packages/pvm-core/lib/git/commands.ts:169
isBranchExists
โข isBranchExists: MemoizedFunction
<[cwd: string, branchName: string], boolean
>
Defined in
packages/pvm-core/lib/git/commands.ts:151
isRemoteBranchExists
โข isRemoteBranchExists: MemoizedFunction
<[cwd: string, branchName: string], boolean
>
Defined in
packages/pvm-core/lib/git/commands.ts:160
isShallowRepository
โข isShallowRepository: MemoizedFunction
<[cwd: string], boolean
>
Defined in
packages/pvm-core/lib/git/commands.ts:130
isTag
โข isTag: MemoizedFunction
<[cwd: string, ref: string], boolean
>
Defined in
packages/pvm-core/lib/git/commands.ts:142
issueRe
โข issueRe: RegExp
Defined in
packages/pvm-core/lib/text/jira.ts:1
log
โข log: any
Defined in
packages/pvm-core/lib/logger.ts:54
logger
โข logger: SignaleType
<"debug"
| "silly"
| "deprecate"
, string
>
Defined in
packages/pvm-core/lib/logger.ts:24
mrkdwnLinkRe
โข mrkdwnLinkRe: RegExp
Defined in
packages/pvm-core/lib/text/markdown.ts:2
pagingMeta
โข pagingMeta: typeof pagingMeta
Defined in
packages/pvm-core/lib/vcs-meta.ts:2
pkgTagRe
โข pkgTagRe: RegExp
Defined in
packages/pvm-core/lib/tag-meta.ts:6
releaseMark
โข releaseMark: "-- release commit --"
Defined in
packages/pvm-core/lib/consts.ts:1
releaseTypes
โข releaseTypes: Object
Type declaration
Name | Type |
---|---|
eq | (a : PvmReleaseType , b : PvmReleaseType ) => boolean |
gt | (a : PvmReleaseType , b : PvmReleaseType ) => boolean |
gte | (a : PvmReleaseType , b : PvmReleaseType ) => boolean |
lt | (a : PvmReleaseType , b : PvmReleaseType ) => boolean |
lte | (a : PvmReleaseType , b : PvmReleaseType ) => boolean |
max | <T>(...args : T ) => T extends [] ? undefined : PvmReleaseType |
Defined in
packages/pvm-core/lib/semver-extra.ts:32
releaseTypesInAscendingOrder
โข releaseTypesInAscendingOrder: PvmReleaseType
[]
Defined in
packages/pvm-core/lib/semver-extra.ts:4
taggedCacheManager
โข taggedCacheManager: TaggedCacheManager
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:124
tags
โข tags: RegExp
[]
Defined in
packages/pvm-core/lib/analyzer/simple.ts:23
tagsCache
โข tagsCache: CwdCache
<string
>
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:9
versioningFile
โข versioningFile: Object
Type declaration
Name | Type |
---|---|
clearCache | () => void |
existsForRef | (config : Config , ref : undefined | string ) => boolean |
load | (config : Config , ref : undefined | string ) => false | Record <string , string > |
lookupPkgVersion | (pkg : Pkg , ref : undefined | string ) => string | void |
save | (config : Config , versions : Record <string , string >, index : boolean ) => void |
stringify | (versions : Record <string , string >) => string |
Defined in
packages/pvm-core/lib/dedicated-versions-file.ts:56
Functions
addTag
โธ addTag(cwd
, __namedParameters
): void
Parameters
Name | Type |
---|---|
cwd | string |
__namedParameters | AddTagOptions |
Returns
void
Defined in
packages/pvm-core/lib/git/commands.ts:221
bindToCwd
โธ bindToCwd<O
, F
>(cwd
, fn
): (cmd
: string
, opts?
: O
) => ReturnType
<F
>
Type parameters
Name | Type |
---|---|
O | extends object |
F | extends (cmd : string , opts? : O ) => any |
Parameters
Name | Type |
---|---|
cwd | string |
fn | F |
Returns
fn
โธ (cmd
, opts?
): ReturnType
<F
>
Parameters
Name | Type |
---|---|
cmd | string |
opts? | O |
Returns
ReturnType
<F
>
Defined in
packages/pvm-core/lib/shell/index.ts:89
cachedRealPath
โธ Const
cachedRealPath(...args
): string
Parameters
Name | Type |
---|---|
...args | [dir: string] |
Returns
string
Defined in
packages/pvm-core/lib/fs.ts:19
checkEnv
โธ checkEnv(checks
, action
, __namedParameters?
): boolean
Parameters
Name | Type | Default value |
---|---|---|
checks | EnvCheck | EnvCheck [] | undefined |
action | string | undefined |
__namedParameters | Object | undefined |
__namedParameters.logger | Object | undefined |
__namedParameters.logger.info | (message? : any , ...optionalParams : any []) => void | console.info |
__namedParameters.silent | boolean | true |
Returns
boolean
Defined in
packages/pvm-core/lib/env.ts:13
clearConfigCacheFor
โธ clearConfigCacheFor(cwd
): void
Parameters
Name | Type |
---|---|
cwd | string |
Returns
void
Defined in
packages/pvm-core/lib/config/get-config.ts:312
cmdOption
โธ cmdOption(name
, value?
): string
Parameters
Name | Type |
---|---|
name | string |
value? | string | number |
Returns
string
Defined in
packages/pvm-core/lib/utils/cmd.ts:1
cmpReleaseTypes
โธ cmpReleaseTypes(a
, b
): -1
| 0
| 1
Parameters
Name | Type |
---|---|
a | null | PvmReleaseType |
b | null | PvmReleaseType |
Returns
-1
| 0
| 1
Defined in
packages/pvm-core/lib/semver-extra.ts:20
cmpStr
โธ cmpStr(a
, b
): number
Parameters
Name | Type |
---|---|
a | string |
b | string |
Returns
number
Defined in
packages/pvm-core/lib/utils/string.ts:1
collectItemsToRecord
โธ collectItemsToRecord<T
>(asyncIterator
, key
): Promise
<Record
<string
, T
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
asyncIterator | AsyncIterable <T > |
key | (x : T ) => string |
Returns
Promise
<Record
<string
, T
>>
Defined in
packages/pvm-core/lib/iter/collect-items.ts:2
concatPackages
โธ concatPackages(left
, right
): Pkg
[]
Parameters
Name | Type |
---|---|
left | Iterable <Pkg > |
right | Iterable <Pkg > |
Returns
Pkg
[]
Defined in
packages/pvm-core/lib/pkg.ts:473
cutText
โธ cutText(text
, maxLen
): string
Parameters
Name | Type |
---|---|
text | string |
maxLen | number |
Returns
string
Defined in
packages/pvm-core/lib/text/index.ts:3
cwdShell
โธ cwdShell(cmd
, opts?
): string
Parameters
Name | Type |
---|---|
cmd | string |
opts | ExecSyncOptions |
Returns
string
Defined in
packages/pvm-core/lib/shell/index.ts:77
cwdToGitRelativity
โธ cwdToGitRelativity(cwd
, p
, getWorktreeRootCustom?
): string
Parameters
Name | Type | Default value |
---|---|---|
cwd | string | undefined |
p | string | undefined |
getWorktreeRootCustom | (...args : [cwd: string]) => string | getWorktreeRoot |
Returns
string
Defined in
packages/pvm-core/lib/git/worktree.ts:38
default
โธ default(messages
, defaultLevel?
): PvmReleaseType
Parameters
Name | Type | Default value |
---|---|---|
messages | string [] | undefined |
defaultLevel | PvmReleaseType | 'minor' |
Returns
Defined in
packages/pvm-core/lib/analyzer/simple.ts:6
defaultsFromProvider
โธ defaultsFromProvider(provider
): RecursivePartial
<Config
> | undefined
Parameters
Name | Type |
---|---|
provider | PvmProviderInfo |
Returns
RecursivePartial
<Config
> | undefined
Defined in
packages/pvm-core/lib/config/get-config.ts:365
deleteTag
โธ deleteTag(cwd
, tagName
): void
Parameters
Name | Type |
---|---|
cwd | string |
tagName | string |
Returns
void
Defined in
packages/pvm-core/lib/git/commands.ts:214
dottifyList
โธ dottifyList(text
, symbolItem?
): string
Parameters
Name | Type | Default value |
---|---|---|
text | string | undefined |
symbolItem | string | '-' |
Returns
string
Defined in
packages/pvm-core/lib/text/markdown.ts:18
drainWhileResolves
โธ drainWhileResolves<T
>(asyncIterable
): Promise
<DrainResult
<T
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
asyncIterable | AsyncIterable <T > |
Returns
Promise
<DrainResult
<T
>>
Defined in
packages/pvm-core/lib/iter/index.ts:11
enpl
โธ enpl(forms
, count
, ...args
): string
Parameters
Name | Type |
---|---|
forms | string [] |
count | number |
...args | any [] |
Returns
string
Defined in
packages/pvm-core/lib/text/plural.ts:9
escapeFilePath
โธ escapeFilePath(fp
): string
Parameters
Name | Type |
---|---|
fp | string |
Returns
string
Defined in
packages/pvm-core/lib/fs.ts:12
expDropRight
โธ expDropRight<T
>(list
, filterFn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
list | T [] |
filterFn | (entry : T , index : number ) => boolean |
Returns
T
[]
Defined in
packages/pvm-core/lib/utils/array.ts:1
extractDomain
โธ extractDomain(url
): string
| null
Parameters
Name | Type |
---|---|
url | string |
Returns
string
| null
Defined in
packages/pvm-core/lib/git/commands.ts:108
extractVersionFromSemverTag
โธ extractVersionFromSemverTag(semverTag
): string
Parameters
Name | Type |
---|---|
semverTag | string |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:25
extractVersionsFromAnnotation
โธ extractVersionsFromAnnotation(annotation
): Map
<string
, string
>
Parameters
Name | Type |
---|---|
annotation | string |
Returns
Map
<string
, string
>
Defined in
packages/pvm-core/lib/versioning.ts:46
fetchTags
โธ fetchTags(cwd
): void
Parameters
Name | Type |
---|---|
cwd | string |
Returns
void
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:11
fsEscape
โธ fsEscape(tagName
): string
Parameters
Name | Type |
---|---|
tagName | string |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:108
getApp
โธ getApp(cwd?
, opts?
): Pvm
Parameters
Name | Type |
---|---|
cwd | string |
opts | GetConfigOpts |
Returns
Defined in
packages/pvm-core/lib/config/get-config.ts:415
getConfigWithoutIncludes
โธ Const
getConfigWithoutIncludes(cwd?
, opts?
): Config
deprecated
Please use getConfig
instead
Parameters
Name | Type |
---|---|
cwd | string |
opts? | GetConfigOpts |
Returns
Defined in
packages/pvm-core/lib/config/get-config.ts:422
getContents
โธ getContents(cwd
, filePath
, opts?
): string
| null
Parameters
Name | Type |
---|---|
cwd | string |
filePath | string |
opts | GetContentsOpts |
Returns
string
| null
Defined in
packages/pvm-core/lib/git/commands.ts:25
getCurrentBranchIgnoreEnv
โธ getCurrentBranchIgnoreEnv(cwd
): string
| undefined
Parameters
Name | Type |
---|---|
cwd | string |
Returns
string
| undefined
Defined in
packages/pvm-core/lib/git/commands.ts:51
getDefault
โธ getDefault(mod
): any
Parameters
Name | Type |
---|---|
mod | any |
Returns
any
Defined in
packages/pvm-core/lib/interop.ts:1
getEnv
โธ getEnv(): Env
Returns
Defined in
packages/pvm-core/lib/env.ts:38
getGitVersion
โธ Const
getGitVersion(): undefined
| string
Returns
undefined
| string
Defined in
packages/pvm-core/lib/runtime-env/versions.ts:19
getHostApi
โธ getHostApi(cwd?
): Promise
<HostApi
>
Parameters
Name | Type |
---|---|
cwd | string |
Returns
Promise
<HostApi
>
Defined in
packages/pvm-core/lib/plugins/index.ts:303
getHostUrl
โธ getHostUrl(cwd
): string
| void
Parameters
Name | Type |
---|---|
cwd | string |
Returns
string
| void
Defined in
packages/pvm-core/lib/git/commands.ts:98
getMainWorktreePath
โธ getMainWorktreePath(dir
): string
ะะปั ะทะฐะณััะทะบะธ ะบะพะฝัะธะณะพะฒ ะธ ะฟะปะฐะณะธะฝะพะฒ ะฝัะถะฝะพ ัะผะตัั ะธัะบะฐัั ะธัั ะพะดะฝะพะต ัะฐะฑะพัะตะต ะดะตัะตะฒะพ ั.ะบ. ะฒ ัะตะบััะตะผ ะผะพะถะตั ะฝะต ะฑััั ะฝัะถะฝัั ะบะพะฝัะธะณััะฐัะธะพะฝะฝัั ัะฐะนะปะพะฒ ะธ node_modules
Parameters
Name | Type |
---|---|
dir | string |
Returns
string
Defined in
packages/pvm-core/lib/git/worktree.ts:10
getNpmVersion
โธ Const
getNpmVersion(): undefined
| string
Returns
undefined
| string
Defined in
packages/pvm-core/lib/runtime-env/versions.ts:20
getOldestDescendantCommitRef
โธ getOldestDescendantCommitRef(cwd
, currentBranch
, targetRef
): string
Parameters
Name | Type |
---|---|
cwd | string |
currentBranch | undefined | string |
targetRef | string |
Returns
string
Defined in
packages/pvm-core/lib/git/commands.ts:187
getPersistentRef
โธ getPersistentRef(config
, ref
): string
Parameters
Name | Type |
---|---|
config | Config |
ref | string |
Returns
string
Defined in
packages/pvm-core/lib/git/commands.ts:178
getRefContent
โธ getRefContent(cwd
, ref
): string
Parameters
Name | Type |
---|---|
cwd | string |
ref | string |
Returns
string
Defined in
packages/pvm-core/lib/git/commands.ts:63
getReleaseCommits
โธ getReleaseCommits(config
, target?
): Promise
<Commit
[] | void
>
Parameters
Name | Type | Default value |
---|---|---|
config | Config | undefined |
target | string | 'HEAD' |
Returns
Promise
<Commit
[] | void
>
Defined in
packages/pvm-core/lib/git/release-commits.ts:60
getReleaseRefs
โธ getReleaseRefs(config
, target?
): [string
, string
] | void
Parameters
Name | Type | Default value |
---|---|---|
config | Config | undefined |
target | string | 'HEAD' |
Returns
[string
, string
] | void
Defined in
packages/pvm-core/lib/git/release-commits.ts:17
getRemoteUrl
โธ getRemoteUrl(cwd
): string
| void
Parameters
Name | Type |
---|---|
cwd | string |
Returns
string
| void
Defined in
packages/pvm-core/lib/git/commands.ts:81
getStagedFiles
โธ getStagedFiles(cwd
): string
[]
Parameters
Name | Type |
---|---|
cwd | string |
Returns
string
[]
Defined in
packages/pvm-core/lib/git/commands.ts:34
getTagAnnotation
โธ getTagAnnotation(cwd
, tagName
): string
Parameters
Name | Type |
---|---|
cwd | string |
tagName | string |
Returns
string
Defined in
packages/pvm-core/lib/git/commands.ts:70
getVersionsFromTagCached
โธ getVersionsFromTagCached(cwd
, tagName
): Map
<string
, string
>
Parameters
Name | Type |
---|---|
cwd | string |
tagName | string |
Returns
Map
<string
, string
>
Defined in
packages/pvm-core/lib/versioning.ts:76
getWorkspaces
โธ getWorkspaces(cwd?
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
cwd | string |
Returns
Promise
<string
[]>
Defined in
packages/pvm-core/lib/workspaces.ts:104
getWorkspacesFromRef
โธ getWorkspacesFromRef(ref
, cwd?
): string
[]
Parameters
Name | Type |
---|---|
ref | string |
cwd | string |
Returns
string
[]
Defined in
packages/pvm-core/lib/workspaces.ts:92
getWorkspacesSync
โธ getWorkspacesSync(cwd?
): string
[]
Parameters
Name | Type |
---|---|
cwd | string |
Returns
string
[]
Defined in
packages/pvm-core/lib/workspaces.ts:83
getWorktreeRoot
โธ Const
getWorktreeRoot(...args
): string
ะะปั ะทะฐะณััะทะบะธ ะบะพะฝัะธะณะพะฒ ะธ ะฟะปะฐะณะธะฝะพะฒ ะฝัะถะฝะพ ัะผะตัั ะธัะบะฐัั ะธัั ะพะดะฝะพะต ัะฐะฑะพัะตะต ะดะตัะตะฒะพ ั.ะบ. ะฒ ัะตะบััะตะผ ะผะพะถะตั ะฝะต ะฑััั ะฝัะถะฝัั ะบะพะฝัะธะณััะฐัะธะพะฝะฝัั ัะฐะนะปะพะฒ ะธ node_modules
Parameters
Name | Type |
---|---|
...args | [cwd: string] |
Returns
string
Defined in
packages/pvm-core/lib/git/worktree.ts:28
gitAuthorDate
โธ gitAuthorDate(cwd
, ref
): Date
Parameters
Name | Type |
---|---|
cwd | string |
ref | string |
Returns
Date
Defined in
packages/pvm-core/lib/git/commands.ts:138
gitFetch
โธ gitFetch(cwd
, __namedParameters?
): void
Parameters
Name | Type |
---|---|
cwd | string |
__namedParameters | FetchOptions |
Returns
void
Defined in
packages/pvm-core/lib/git/commands.ts:240
gitToCwdRelativity
โธ gitToCwdRelativity(cwd
, p
, getWorktreeRootCustom?
): string
Parameters
Name | Type | Default value |
---|---|---|
cwd | string | undefined |
p | string | undefined |
getWorktreeRootCustom | (...args : [cwd: string]) => string | getWorktreeRoot |
Returns
string
Defined in
packages/pvm-core/lib/git/worktree.ts:51
gracefullyTruncateText
โธ gracefullyTruncateText(text
, maxLen
, suffix?
): string
Parameters
Name | Type | Default value |
---|---|---|
text | string | undefined |
maxLen | number | undefined |
suffix | string | '\n...' |
Returns
string
Defined in
packages/pvm-core/lib/utils/string.ts:10
handleDifferentComparisonRefs
โธ handleDifferentComparisonRefs(logger
, storedPkg
, providedPkg
): void
Parameters
Name | Type |
---|---|
logger | SignaleType <never , never > |
storedPkg | Pkg |
providedPkg | Pkg |
Returns
void
Defined in
packages/pvm-core/lib/utils.ts:87
indexFile
โธ indexFile(config
, filepath
): void
Parameters
Name | Type |
---|---|
config | Config |
filepath | string |
Returns
void
Defined in
packages/pvm-core/lib/git/commands.ts:46
inspectArgs
โธ inspectArgs(args
, maxSizePerArg?
): string
Parameters
Name | Type | Default value |
---|---|---|
args | any [] | undefined |
maxSizePerArg | number | 165 |
Returns
string
Defined in
packages/pvm-core/lib/inspect-args.ts:3
isArraysDeepEqual
โธ isArraysDeepEqual(left
, right
): boolean
Parameters
Name | Type |
---|---|
left | unknown [] |
right | unknown [] |
Returns
boolean
Defined in
packages/pvm-core/lib/utils.ts:71
isDeepEqual
โธ isDeepEqual(l
, r
): boolean
Parameters
Name | Type |
---|---|
l | unknown |
r | unknown |
Returns
boolean
Defined in
packages/pvm-core/lib/utils.ts:49
isFlatArraysEqual
โธ isFlatArraysEqual<T
>(left
, right
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
left | T [] |
right | T [] |
Returns
boolean
Defined in
packages/pvm-core/lib/utils.ts:7
isGenericTagUsed
โธ isGenericTagUsed(config
): boolean
Parameters
Name | Type |
---|---|
config | Config |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:14
isPkgFromMainUnifiedGroup
โธ isPkgFromMainUnifiedGroup(config
, pkg
): boolean
Parameters
Name | Type |
---|---|
config | Config |
pkg | Pkg |
Returns
boolean
Defined in
packages/pvm-core/lib/versioning.ts:17
isPlainObject
โธ isPlainObject(x
): x is Record<string, unknown>
Parameters
Name | Type |
---|---|
x | unknown |
Returns
x is Record<string, unknown>
Defined in
packages/pvm-core/lib/app/index.ts:21
isRecordsDeepEqual
โธ isRecordsDeepEqual(left
, right
): boolean
Parameters
Name | Type |
---|---|
left | Record <string , unknown > |
right | Record <string , unknown > |
Returns
boolean
Defined in
packages/pvm-core/lib/utils.ts:34
isReleaseCommit
โธ isReleaseCommit(cwd
, ref
): boolean
Parameters
Name | Type |
---|---|
cwd | string |
ref | string |
Returns
boolean
Defined in
packages/pvm-core/lib/versioning.ts:12
isReleaseTag
โธ isReleaseTag(config
, tag
): boolean
Parameters
Name | Type |
---|---|
config | Config |
tag | string |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:53
isSemverTag
โธ isSemverTag(tagName
): boolean
Parameters
Name | Type |
---|---|
tagName | string |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:37
isSemverTagUsed
โธ isSemverTagUsed(config
): boolean
Parameters
Name | Type |
---|---|
config | Config |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:33
isStubVersion
โธ isStubVersion(version
): boolean
Parameters
Name | Type |
---|---|
version | string |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:114
isTagAnnotated
โธ isTagAnnotated(cwd
, tagName
): boolean
Parameters
Name | Type |
---|---|
cwd | string |
tagName | string |
Returns
boolean
Defined in
packages/pvm-core/lib/git/commands.ts:59
isValidReleaseType
โธ isValidReleaseType(releaseType
): boolean
Parameters
Name | Type |
---|---|
releaseType | string | void |
Returns
boolean
Defined in
packages/pvm-core/lib/semver-extra.ts:7
isWorkingDirectoryClean
โธ Const
isWorkingDirectoryClean(cwd
): boolean
Parameters
Name | Type |
---|---|
cwd | string |
Returns
boolean
Defined in
packages/pvm-core/lib/git/commands.ts:174
issueToLink
โธ issueToLink(jiraUrl
, text
): string
Parameters
Name | Type |
---|---|
jiraUrl | string |
text | string |
Returns
string
Defined in
packages/pvm-core/lib/text/jira.ts:9
issueToMdLink
โธ issueToMdLink(jiraUrl
, text
): string
Parameters
Name | Type |
---|---|
jiraUrl | string |
text | string |
Returns
string
Defined in
packages/pvm-core/lib/text/jira.ts:3
issueToSlackLink
โธ issueToSlackLink(jiraUrl
, text
): string
Parameters
Name | Type |
---|---|
jiraUrl | string |
text | string |
Returns
string
Defined in
packages/pvm-core/lib/text/jira.ts:15
lastMatchedTag
โธ lastMatchedTag(cwd
, mask
, target?
): string
Parameters
Name | Type |
---|---|
cwd | string |
mask | string |
target | undefined | string |
Returns
string
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:44
lastReleaseTag
โธ lastReleaseTag(config
, targetRef?
): string
Parameters
Name | Type |
---|---|
config | Config |
targetRef | undefined | string |
Returns
string
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:59
lastReleaseTagIgnoreEnv
โธ lastReleaseTagIgnoreEnv(config
, target?
): string
Parameters
Name | Type |
---|---|
config | Config |
target | undefined | string |
Returns
string
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:55
lazyCallee
โธ lazyCallee(targetProto
, propKey
, desc
): void
Parameters
Name | Type |
---|---|
targetProto | object |
propKey | string |
desc | PropertyDescriptor |
Returns
void
Defined in
packages/pvm-core/lib/class-helpers.ts:4
loadPkg
โธ loadPkg(config
, pkgPath
, opts?
): Pkg
| null
Parameters
Name | Type |
---|---|
config | Config |
pkgPath | string |
opts | LoadPkgOptions |
Returns
Pkg
| null
Defined in
packages/pvm-core/lib/pkg.ts:433
loadRawConfig
โธ loadRawConfig(cwd
, ref?
): ConfigResult
Parameters
Name | Type |
---|---|
cwd | string |
ref | undefined | string |
Returns
Defined in
packages/pvm-core/lib/config/get-config.ts:321
loggerFor
โธ Const
loggerFor(scope
): SignaleType
<"debug"
| "silly"
| "deprecate"
, never
>
Parameters
Name | Type |
---|---|
scope | string |
Returns
SignaleType
<"debug"
| "silly"
| "deprecate"
, never
>
Defined in
packages/pvm-core/lib/logger.ts:50
makeReleaseForTag
โธ makeReleaseForTag(vcs
, tagObject
, prevRef
): Promise
<void
>
Parameters
Name | Type |
---|---|
vcs | VcsPlatform |
tagObject | any |
prevRef | string |
Returns
Promise
<void
>
Defined in
packages/pvm-core/lib/release-notes.ts:23
makeReleaseForTagName
โธ makeReleaseForTagName(vcs
, tagName
, prevRef
, opts?
): Promise
<void
>
Parameters
Name | Type |
---|---|
vcs | VcsPlatform |
tagName | string |
prevRef | string |
opts | MakeReleaseForTagNameOpts |
Returns
Promise
<void
>
Defined in
packages/pvm-core/lib/release-notes.ts:37
makeSemverGetter
โธ makeSemverGetter(cmd
): () => string
| undefined
Parameters
Name | Type |
---|---|
cmd | string |
Returns
fn
โธ (): string
| undefined
Returns
string
| undefined
Defined in
packages/pvm-core/lib/runtime-env/versions.ts:5
makeTagForPkg
โธ makeTagForPkg(config
, pkg
): string
Parameters
Name | Type |
---|---|
config | Config |
pkg | Pkg |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:100
makeUnifiedReleaseTagTest
โธ makeUnifiedReleaseTagTest(config
): (tagName
: string
) => boolean
Parameters
Name | Type |
---|---|
config | Config |
Returns
fn
โธ (tagName
): boolean
Parameters
Name | Type |
---|---|
tagName | string |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:41
matchAny
โธ matchAny(pkg
, patterns
): boolean
Parameters
Name | Type |
---|---|
pkg | Pkg |
patterns | string [] | readonly string [] |
Returns
boolean
Defined in
packages/pvm-core/lib/pkg-match.ts:15
matchGroup
โธ matchGroup<KeyType
>(pkg
, groups
): KeyType
| undefined
Type parameters
Name | Type |
---|---|
KeyType | extends string |
Parameters
Name | Type |
---|---|
pkg | Pkg |
groups | Partial <Record <KeyType , string | string []>> |
Returns
KeyType
| undefined
Defined in
packages/pvm-core/lib/pkg-match.ts:24
matchPackage
โธ matchPackage(pkg
, pattern
): boolean
Parameters
Name | Type |
---|---|
pkg | Pkg |
pattern | string |
Returns
boolean
Defined in
packages/pvm-core/lib/pkg-match.ts:4
mema
โธ mema<A
, R
>(fn
, arg?
): (...args
: A
) => R
Type parameters
Name | Type |
---|---|
A | extends any [] |
R | R |
Parameters
Name | Type | Default value |
---|---|---|
fn | (...args : A ) => R | undefined |
arg | number | 0 |
Returns
fn
โธ (...args
): R
Parameters
Name | Type |
---|---|
...args | A |
Returns
R
Defined in
packages/pvm-core/lib/memoize/mema.ts:1
memoize
โธ memoize<A
, R
>(fn
, tags
): MemoizedFunction
<A
, R
>
Type parameters
Name | Type |
---|---|
A | extends any [] |
R | R |
Parameters
Name | Type |
---|---|
fn | (...args : A ) => R |
tags | CacheTag [] |
Returns
MemoizedFunction
<A
, R
>
Defined in
packages/pvm-core/lib/memoize/tagged-cache-manager.ts:126
mergeBase
โธ mergeBase(cwd
, from
, to
): string
Parameters
Name | Type |
---|---|
cwd | string |
from | string |
to | string |
Returns
string
Defined in
packages/pvm-core/lib/git/merge-base.ts:4
mergeDefaults
โธ mergeDefaults<T
>(a
, b
): T
Type parameters
Name | Type |
---|---|
T | extends Record <string , any > |
Parameters
Name | Type |
---|---|
a | T |
b | Record <string , any > |
Returns
T
Defined in
packages/pvm-core/lib/config/get-config.ts:52
migrateDeprecated
โธ migrateDeprecated(config
): void
Parameters
Name | Type |
---|---|
config | Config |
Returns
void
Defined in
packages/pvm-core/lib/config/get-config.ts:246
mkdirp
โธ mkdirp(dir
): void
Parameters
Name | Type |
---|---|
dir | string |
Returns
void
Defined in
nameFromTag
โธ nameFromTag(tag
): string
Parameters
Name | Type |
---|---|
tag | string |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:82
noPackagesInMugError
โธ noPackagesInMugError(): Error
Returns
Error
Defined in
packages/pvm-core/lib/behaviors/no-packages-in-mug.ts:2
nthIndex
โธ nthIndex(str
, pattern
, n
): number
Parameters
Name | Type |
---|---|
str | string |
pattern | string |
n | number |
Returns
number
Defined in
packages/pvm-core/lib/text/index.ts:7
parseSubArgs
โธ parseSubArgs(args?
): Argv
<Default
>
Parameters
Name | Type | Default value |
---|---|---|
args | string [] | [] |
Returns
Argv
<Default
>
Defined in
packages/pvm-core/lib/text/sub-args.ts:11
parseSubArgsDashedCase
โธ parseSubArgsDashedCase(opts?
): Argv
<Default
>
Parameters
Name | Type | Default value |
---|---|---|
opts | string [] | [] |
Returns
Argv
<Default
>
Defined in
packages/pvm-core/lib/text/sub-args.ts:7
pkgCommits
โธ pkgCommits(pkg
, from
, to
): Promise
<Commit
[]>
Parameters
Name | Type |
---|---|
pkg | Pkg |
from | string |
to | string |
Returns
Promise
<Commit
[]>
Defined in
packages/pvm-core/lib/git/pkg-commits.ts:5
pkgTagMask
โธ pkgTagMask(config
, pkg
): string
Parameters
Name | Type |
---|---|
config | Config |
pkg | Pkg |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:63
pprintPackages
โธ pprintPackages(packages
, columnsProvider
): void
Parameters
Name | Type |
---|---|
packages | Iterable <Pkg > |
columnsProvider | ColumnsProvider <Pkg > |
Returns
void
Defined in
packages/pvm-core/lib/utils/pprint.ts:10
prepareReleaseData
โธ prepareReleaseData(cwd
, targetTag
, prevRef
): Promise
<ReleasePayload
>
Parameters
Name | Type |
---|---|
cwd | string |
targetTag | string |
prevRef | string |
Returns
Promise
<ReleasePayload
>
Defined in
packages/pvm-core/lib/release-notes.ts:9
prevReleaseTag
โธ prevReleaseTag(config
, target?
): string
Parameters
Name | Type | Default value |
---|---|---|
config | Config | undefined |
target | string | 'HEAD' |
Returns
string
Defined in
packages/pvm-core/lib/git/last-release-tag.ts:69
pullOutLinks
โธ pullOutLinks(text
): string
Parameters
Name | Type |
---|---|
text | string |
Returns
string
Defined in
packages/pvm-core/lib/text/markdown.ts:4
readEnv
โธ readEnv(env?
): Record
<string
, string
>
Parameters
Name | Type | Default value |
---|---|---|
env | ProcessEnv | process.env |
Returns
Record
<string
, string
>
Defined in
packages/pvm-core/lib/config/get-config.ts:111
releaseCommitsAsString
โธ releaseCommitsAsString(config
, opts?
): string
| void
Parameters
Name | Type |
---|---|
config | Config |
opts | ReleaseCommitsOpts |
Returns
string
| void
Defined in
packages/pvm-core/lib/git/release-commits.ts:47
releaseTagFilter
โธ releaseTagFilter(config
): (string
: any
) => boolean
Parameters
Name | Type |
---|---|
config | Config |
Returns
fn
โธ (string
): boolean
Parameters
Name | Type |
---|---|
string | any |
Returns
boolean
Defined in
packages/pvm-core/lib/tag-meta.ts:49
releaseTagMask
โธ releaseTagMask(config
): string
Parameters
Name | Type |
---|---|
config | Config |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:57
releaseTagPrefix
โธ releaseTagPrefix(config
): string
Parameters
Name | Type |
---|---|
config | Config |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:67
replaceLinks
โธ replaceLinks(text
, replacer
): string
Parameters
Name | Type |
---|---|
text | string |
replacer | any |
Returns
string
Defined in
packages/pvm-core/lib/text/markdown.ts:10
requestWithRetries
โธ requestWithRetries(requestFn
, retryOpts?
, retryIndex?
): any
Parameters
Name | Type | Default value |
---|---|---|
requestFn | () => any | undefined |
retryOpts | Object | {} |
retryOpts.retryCodes? | number [] | undefined |
retryOpts.timeouts? | number [] | undefined |
retryIndex | number | 0 |
Returns
any
Defined in
packages/pvm-core/lib/httpreq.ts:140
requireDefault
โธ requireDefault(path
): any
Parameters
Name | Type |
---|---|
path | any |
Returns
any
Defined in
packages/pvm-core/lib/interop.ts:5
resolvePvmProvider
โธ Const
resolvePvmProvider(cwd
): undefined
| PvmProviderInfo
Parameters
Name | Type |
---|---|
cwd | string |
Returns
undefined
| PvmProviderInfo
Defined in
packages/pvm-core/lib/plugins/provider.ts:15
revSafeParse
โธ revSafeParse(ref
, cwd
): string
| null
Parameters
Name | Type |
---|---|
ref | string |
cwd | string |
Returns
string
| null
Defined in
packages/pvm-core/lib/git/rev-parse.ts:37
safeIterate
โธ safeIterate<T
>(asyncIterable
): AsyncIterableIterator
<SafeIterationResult
<T
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
asyncIterable | AsyncIterable <T > |
Returns
AsyncIterableIterator
<SafeIterationResult
<T
>>
Defined in
packages/pvm-core/lib/iter/index.ts:37
searchAnnotatedVersionInDepth
โธ searchAnnotatedVersionInDepth(config
, fromTag
, pkgName
): string
| undefined
Parameters
Name | Type |
---|---|
config | Config |
fromTag | string |
pkgName | string |
Returns
string
| undefined
Defined in
packages/pvm-core/lib/versioning.ts:87
semverTag
โธ semverTag(pkg
): string
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:96
shell
โธ shell(cmd
, opts?
): string
Parameters
Name | Type |
---|---|
cmd | string |
opts | ExecSyncOptions |
Returns
string
Defined in
packages/pvm-core/lib/shell/index.ts:29
shellOr
โธ shellOr(def
, cmd
, opts?
): string
Parameters
Name | Type |
---|---|
def | string |
cmd | string |
opts | ExecSyncOptions |
Returns
string
Defined in
packages/pvm-core/lib/shell/index.ts:99
someSync
โธ someSync<T
>(seq
, pred
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
seq | Iterable <T > |
pred | (item : T ) => boolean |
Returns
boolean
Defined in
packages/pvm-core/lib/iter/index.ts:60
splitTag
โธ splitTag(tag
): [string
, string
]
Parameters
Name | Type |
---|---|
tag | string |
Returns
[string
, string
]
Defined in
packages/pvm-core/lib/tag-meta.ts:73
stringifyPkg
โธ stringifyPkg(pkg
, manifest?
): string
Parameters
Name | Type | Default value |
---|---|---|
pkg | Pkg | undefined |
manifest | PkgMeta | pkg.meta |
Returns
string
Defined in
packages/pvm-core/lib/pkg.ts:469
stripPkgNamespace
โธ stripPkgNamespace(pkgName
): string
Parameters
Name | Type |
---|---|
pkgName | string |
Returns
string
Defined in
packages/pvm-core/lib/tag-meta.ts:86
stripServiceLabels
โธ stripServiceLabels(text
): string
Parameters
Name | Type |
---|---|
text | string |
Returns
string
Defined in
packages/pvm-core/lib/text/commits.ts:3
takeFirstSync
โธ takeFirstSync<T
>(seq
): T
| undefined
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
seq | Iterable <T > |
Returns
T
| undefined
Defined in
packages/pvm-core/lib/iter/index.ts:54
validateAgainstSchema
โธ validateAgainstSchema(config
): void
Parameters
Name | Type |
---|---|
config | Config |
Returns
void
Defined in
packages/pvm-core/lib/config/get-config.ts:195
validateUpdateHints
โธ validateUpdateHints(config
, hints
): void
Parameters
Name | Type |
---|---|
config | Config |
hints | Record <string , any > |
Returns
void
Defined in
packages/pvm-core/lib/hints-file.ts:148
verifyRequiredBins
โธ verifyRequiredBins(): Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/pvm-core/lib/app/required-bin-versions.ts:7
wdShell
โธ wdShell(wd
, cmd
, opts?
): string
Parameters
Name | Type |
---|---|
wd | string |
cmd | string |
opts | ExecSyncOptions |
Returns
string
Defined in
packages/pvm-core/lib/shell/index.ts:81
wdmemoize
โธ wdmemoize<A
, R
>(fn
, tags
, cwdArgPosition?
): MemoizedFunction
<A
, R
>
Type parameters
Name | Type |
---|---|
A | extends any [] |
R | R |
Parameters
Name | Type | Default value |
---|---|---|
fn | (...args : A ) => R | undefined |
tags | CacheTag [] | undefined |
cwdArgPosition | number | 0 |
Returns
MemoizedFunction
<A
, R
>